Source-Changes-HG archive

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

[src/trunk]: src/share/mk -Wl, -pie and -r don't agree with each other, so fil...



details:   https://anonhg.NetBSD.org/src/rev/2991fe3c9599
branches:  trunk
changeset: 325992:2991fe3c9599
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Jan 15 13:59:38 2014 +0000

description:
-Wl,-pie and -r don't agree with each other, so filter the former out.

diffstat:

 share/mk/bsd.prog.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r dbfd2df942fd -r 2991fe3c9599 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk      Wed Jan 15 12:58:23 2014 +0000
+++ b/share/mk/bsd.prog.mk      Wed Jan 15 13:59:38 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.prog.mk,v 1.286 2013/11/11 10:24:53 joerg Exp $
+#      $NetBSD: bsd.prog.mk,v 1.287 2014/01/15 13:59:38 joerg Exp $
 #      @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -535,7 +535,7 @@
 
 ${_P}.ro: ${OBJS.${_P}} ${_DPADD.${_P}}
        ${_MKTARGET_LINK}
-       ${CC} ${LDFLAGS} -nostdlib -r -Wl,-dc -o ${.TARGET} ${OBJS.${_P}}
+       ${CC} ${LDFLAGS:N-Wl,-pie} -nostdlib -r -Wl,-dc -o ${.TARGET} ${OBJS.${_P}}
 
 .if defined(_PROGDEBUG.${_P})
 ${_PROGDEBUG.${_P}}: ${_P}



Home | Main Index | Thread Index | Old Index