Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/common_elf Use COPTS instead of CFLAGS



details:   https://anonhg.NetBSD.org/src/rev/da67f7ac3ac5
branches:  trunk
changeset: 780718:da67f7ac3ac5
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Aug 04 14:59:05 2012 +0000

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

diffstat:

 lib/csu/common_elf/Makefile.inc |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 3fe9c9e8ec70 -r da67f7ac3ac5 lib/csu/common_elf/Makefile.inc
--- a/lib/csu/common_elf/Makefile.inc   Sat Aug 04 14:57:46 2012 +0000
+++ b/lib/csu/common_elf/Makefile.inc   Sat Aug 04 14:59:05 2012 +0000
@@ -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+=     -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 @@
 
 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 @@
 
 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"



Home | Main Index | Thread Index | Old Index