pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc7 Pass relro linker flags.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8f6d6d50dad7
branches:  trunk
changeset: 365773:8f6d6d50dad7
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jul 25 13:19:00 2017 +0000

description:
Pass relro linker flags.

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

diffstat:

 lang/gcc7/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r aebc40f85203 -r 8f6d6d50dad7 lang/gcc7/Makefile
--- a/lang/gcc7/Makefile        Tue Jul 25 12:26:17 2017 +0000
+++ b/lang/gcc7/Makefile        Tue Jul 25 13:19:00 2017 +0000
@@ -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 @@
 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