pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler Revert "Always add "-fPIC" when linking wi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fd22154a1956
branches:  trunk
changeset: 371599:fd22154a1956
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Wed Nov 15 19:04:24 2017 +0000

description:
Revert "Always add "-fPIC" when linking with PKGSRC_MKPIE"

It seems to break emulators/qemu.

diffstat:

 mk/compiler/gcc.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9e2e6697b55f -r fd22154a1956 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Wed Nov 15 18:23:20 2017 +0000
+++ b/mk/compiler/gcc.mk        Wed Nov 15 19:04:24 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.187 2017/11/12 13:34:14 khorben Exp $
+# $NetBSD: gcc.mk,v 1.188 2017/11/15 19:04:24 khorben Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -336,7 +336,7 @@
 # XXX for executables it should be:
 #_MKPIE_CFLAGS.gcc=    -fPIE
 # XXX for libraries a sink wrapper around gcc is required and used instead
-_MKPIE_LDFLAGS.gcc=    -fPIC -pie
+_MKPIE_LDFLAGS.gcc=    -pie
 .endif
 
 .if ${_PKGSRC_MKPIE} == "yes"



Home | Main Index | Thread Index | Old Index