pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper Disable the flags for PKGSRC_MKPIE when exp...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4e77512635d7
branches:  trunk
changeset: 381913:4e77512635d7
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Tue Jun 19 05:02:10 2018 +0000

description:
Disable the flags for PKGSRC_MKPIE when explicitly required

This notably allows emulators/qemu to properly detect support for PIE, and
disable it where appropriate. This does not work with cwrappers yet.

diffstat:

 mk/wrapper/transform-gcc |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 3c471ec0fe16 -r 4e77512635d7 mk/wrapper/transform-gcc
--- a/mk/wrapper/transform-gcc  Tue Jun 19 03:16:10 2018 +0000
+++ b/mk/wrapper/transform-gcc  Tue Jun 19 05:02:10 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-gcc,v 1.32 2016/03/14 20:11:56 markd Exp $
+# $NetBSD: transform-gcc,v 1.33 2018/06/19 05:02:10 khorben Exp $
 #
 # This file handles the transformations needed for gcc that can be done
 # looking at only one argument at a time.
@@ -166,6 +166,11 @@
 -errwarn=*             |\
 -errwarn               ) transform_discard_with_warning ;;
 
+# Disable the flags for PKGSRC_MKPIE.
+-fno-pie               |\
+-fno-PIE               |\
+-nopie                 ) MKPIE_CFLAGS=; MKPIE_LDFLAGS=; transform_pass ;;
+
 # Unknown options.
 -*                     ) transform_pass_with_warning ;;
 



Home | Main Index | Thread Index | Old Index