Module Name:    src
Committed By:   matt
Date:           Sat Aug  4 14:59:05 UTC 2012

Modified Files:
        src/lib/csu/common_elf: Makefile.inc

Log Message:
Use COPTS instead of CFLAGS
When compiling crti.c and crtn.c, add -DCRTI and -DCRTN, respectively.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 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.34 src/lib/csu/common_elf/Makefile.inc:1.35
--- src/lib/csu/common_elf/Makefile.inc:1.34	Thu Jun 30 20:09:15 2011
+++ src/lib/csu/common_elf/Makefile.inc	Sat Aug  4 14:59:05 2012
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.34 2011/06/30 20:09:15 wiz Exp $
+#	$NetBSD: Makefile.inc,v 1.35 2012/08/04 14:59:05 matt Exp $
 
 .if !defined(ELFSIZE)
 ELFSIZE=32
@@ -15,7 +15,7 @@ CPPFLAGS+=	-DJCR
 CPPFLAGS+=	-DDSO_HANDLE
 
 .if defined(HAVE_GCC)
-CFLAGS+=	-fno-unit-at-a-time
+COPTS+=		-fno-unit-at-a-time
 .endif
 
 .include <bsd.own.mk>
@@ -51,7 +51,7 @@ gcrt0.o: ${.CURDIR}/crt0.c crt0.o
 
 crti.o: crti.c
 	${_MKTARGET_COMPILE}
-	${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o
+	${COMPILE.c} -DCRTI ${.IMPSRC} -o ${.TARGET}.o
 	${LD} -X -r -o ${.TARGET} ${.TARGET}.o
 	rm -f ${.TARGET}.o
 .if ${MKSTRIPIDENT} != "no"
@@ -60,7 +60,7 @@ crti.o: crti.c
 
 crtn.o: crtn.c
 	${_MKTARGET_COMPILE}
-	${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o
+	${COMPILE.c} -DCRTN ${.IMPSRC} -o ${.TARGET}.o
 	${LD} -X -r -o ${.TARGET} ${.TARGET}.o
 	rm -f ${.TARGET}.o
 .if ${MKSTRIPIDENT} != "no"

Reply via email to