Source-Changes-HG archive

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

[src/trunk]: src/lib/csu/common Only supplie -fPIE to crtbegin.c if MKPIC is ...



details:   https://anonhg.NetBSD.org/src/rev/c2b3a3cb196b
branches:  trunk
changeset: 788718:c2b3a3cb196b
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jul 18 18:43:56 2013 +0000

description:
Only supplie -fPIE to crtbegin.c if MKPIC is yes.

diffstat:

 lib/csu/common/Makefile.inc |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 89c2444c122d -r c2b3a3cb196b lib/csu/common/Makefile.inc
--- a/lib/csu/common/Makefile.inc       Thu Jul 18 18:43:04 2013 +0000
+++ b/lib/csu/common/Makefile.inc       Thu Jul 18 18:43:56 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.14 2013/07/17 14:23:45 martin Exp $
+#      $NetBSD: Makefile.inc,v 1.15 2013/07/18 18:43:56 matt Exp $
 
 .include <bsd.own.mk>
 
@@ -12,6 +12,7 @@
 
 .if ${MKPIC} == "yes"
 OBJS+=         crtbeginS.o
+CFLAGS.crtbegin.c+= -fPIE
 .endif
 
 realall: ${OBJS}
@@ -23,7 +24,7 @@
 .else
 crtbegin.o: crtbegin.c crtbegin.h
        ${_MKTARGET_COMPILE}
-       ${COMPILE.c} -fPIE ${COMMON_DIR}/crtbegin.c -o ${.TARGET}.o
+       ${COMPILE.c} ${CFLAGS.crtbegin.c} ${COMMON_DIR}/crtbegin.c -o ${.TARGET}.o
 .endif
        ${LD} -x -r -o ${.TARGET} ${.TARGET}.o
        rm -f ${.TARGET}.o



Home | Main Index | Thread Index | Old Index