Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Dylan Salisbury <dylan@alumni.cse.ucsc.edu>
Subject: DU 4.0B make/ld doesn't delete target
Date: 1997/10/07	[thread overview]
Message-ID: <343A6D93.B8274E3A@alumni.cse.ucsc.edu> (raw)


Hello,

I'm running Digital Unix 4.0B with no patches.  I'm using Digital's cc,
ld, and make (I know that one answer to my question is "use gcc and GNU
make" so please bear with me and help me find another answer!).

After a link error during a make, I end up with the partially linked
executable remaining!  It's my understanding that make should always
delete a failed target unless the .PRECIOUS special target is specified,
correct?

Are there any flags or commands I can use to get around this problem
without switching development tools?  If not, I'd love recommendations
for the next-least-painful solution (which I imagine is to go GNU?)

Following are two files and a typescript session that reproduce the
problem.

Thanks in advance,


Dylan

Makefile:
a: a.o
        cc a.o -o a

a.o: a.c
        cc -c a.c -o a.o


a.c:
int x(void);

int main(void)
{
        return x();
}

typescript:
Script started, file is typescript
$ make
cc -c a.c -o a.o
cc a.o -o a
ld:
Unresolved:
x
*** Exit 1
Stop.
$ make
`a' is up to date.
$ exit





             reply	other threads:[~1997-10-07  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-07  4:00 Dylan Salisbury [this message]
1997-10-13  4:00 ` DU 4.0B make/ld doesn't delete target Craig Neth USG
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox