pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/gcc7



Module Name:    pkgsrc
Committed By:   wiz
Date:           Tue Jul 25 13:19:00 UTC 2017

Modified Files:
        pkgsrc/lang/gcc7: Makefile

Log Message:
Pass relro linker flags.

Fixes RELRO for most binaries, except for libgcc_s.so.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/lang/gcc7/Makefile

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

Modified files:

Index: pkgsrc/lang/gcc7/Makefile
diff -u pkgsrc/lang/gcc7/Makefile:1.11 pkgsrc/lang/gcc7/Makefile:1.12
--- pkgsrc/lang/gcc7/Makefile:1.11      Tue Jul 18 18:19:35 2017
+++ pkgsrc/lang/gcc7/Makefile   Tue Jul 25 13:19:00 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2017/07/18 18:19:35 brook Exp $
+# $NetBSD: Makefile,v 1.12 2017/07/25 13:19:00 wiz Exp $
 
 GCC_PKGNAME=           gcc7
 .include               "version.mk"
@@ -55,7 +55,7 @@ LANGS=                        c
 LINKER_RPATH_FLAG:=    ${LINKER_RPATH_FLAG:S/-rpath/& /}
 
 ## The Library rpath to use in end programs.
-LDFLAGS_FOR_TARGET=    ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*}
+LDFLAGS_FOR_TARGET=    ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} ${LDFLAGS:M-Wl,-z*}
 
 # The "-static-libstdc++ -static-libgcc" flags are normally added to the
 # boot-ldflags by configure but because we are supply the boot-ldflags



Home | Main Index | Thread Index | Old Index