From 36e2a4216f708e4c630aca9794a7022e7177b7d3 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 4 Aug 2012 14:59:05 +0000 Subject: [PATCH] Use COPTS instead of CFLAGS When compiling crti.c and crtn.c, add -DCRTI and -DCRTN, respectively. --- lib/csu/common_elf/Makefile.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/csu/common_elf/Makefile.inc b/lib/csu/common_elf/Makefile.inc index 2d0cf7e4427a..08df8b60de8e 100644 --- a/lib/csu/common_elf/Makefile.inc +++ b/lib/csu/common_elf/Makefile.inc @@ -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 @@ -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"