From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2bfffd778090b54f,start X-Google-Attributes: gidfee84,public From: Dylan Salisbury Subject: DU 4.0B make/ld doesn't delete target Date: 1997/10/07 Message-ID: <343A6D93.B8274E3A@alumni.cse.ucsc.edu>#1/1 X-Deja-AN: 278480073 X-Priority: 3 (Normal) Organization: North Malden Icelandic Saga Society Newsgroups: comp.unix.osf.osf1 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