Module Name:    src
Committed By:   matt
Date:           Tue Sep  1 23:09:15 UTC 2009

Modified Files:
        src/lib/csu/common_elf [matt-nb5-mips64]: Makefile.inc

Log Message:
use ${OBJCOPY} instead of ${LD} -r


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.30.10.1 src/lib/csu/common_elf/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/csu/common_elf/Makefile.inc
diff -u src/lib/csu/common_elf/Makefile.inc:1.30 src/lib/csu/common_elf/Makefile.inc:1.30.10.1
--- src/lib/csu/common_elf/Makefile.inc:1.30	Fri Aug 29 00:02:22 2008
+++ src/lib/csu/common_elf/Makefile.inc	Tue Sep  1 23:09:14 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.30 2008/08/29 00:02:22 gmcgarry Exp $
+#	$NetBSD: Makefile.inc,v 1.30.10.1 2009/09/01 23:09:14 matt Exp $
 
 .include <bsd.own.mk>
 
@@ -32,28 +32,24 @@
 
 crt0.o: crt0.c
 	${_MKTARGET_COMPILE}
-	${COMPILE.c} -DCRT0 ${.IMPSRC} -o ${.TARGET}.o
-	${LD} -x -r -o ${.TARGET} ${.TARGET}.o
-	rm -f ${.TARGET}.o
+	${COMPILE.c} -DCRT0 ${.IMPSRC} -o ${.TARGET}
+	${OBJCOPY} -x ${.TARGET}
 
 # dependant on crt0.o to pick up header dependencies
 gcrt0.o: ${.CURDIR}/crt0.c crt0.o
 	${_MKTARGET_COMPILE}
-	${COMPILE.c} -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}.o
-	${LD} -x -r -o ${.TARGET} ${.TARGET}.o
-	rm -f ${.TARGET}.o
+	${COMPILE.c} -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
+	${OBJCOPY} -x ${.TARGET}
 
 crti.o: crti.c
 	${_MKTARGET_COMPILE}
-	${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o
-	${LD} -X -r -o ${.TARGET} ${.TARGET}.o
-	rm -f ${.TARGET}.o
+	${COMPILE.c} ${.IMPSRC} -o ${.TARGET}
+	${OBJCOPY} -X ${.TARGET}
 
 crtn.o: crtn.c
 	${_MKTARGET_COMPILE}
-	${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o
-	${LD} -X -r -o ${.TARGET} ${.TARGET}.o
-	rm -f ${.TARGET}.o
+	${COMPILE.c} ${.IMPSRC} -o ${.TARGET}
+	${OBJCOPY} -X ${.TARGET}
 
 FILES=${OBJS}
 FILESDIR=${LIBDIR}

Reply via email to