pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/wrapper



Module Name:    pkgsrc
Committed By:   khorben
Date:           Tue Jun 19 05:02:10 UTC 2018

Modified Files:
        pkgsrc/mk/wrapper: transform-gcc

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/mk/wrapper/transform-gcc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/wrapper/transform-gcc
diff -u pkgsrc/mk/wrapper/transform-gcc:1.32 pkgsrc/mk/wrapper/transform-gcc:1.33
--- pkgsrc/mk/wrapper/transform-gcc:1.32        Mon Mar 14 20:11:56 2016
+++ pkgsrc/mk/wrapper/transform-gcc     Tue Jun 19 05:02:10 2018
@@ -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 @@ case $arg in
 -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