summaryrefslogtreecommitdiff
path: root/lang/gcc7
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-07-25 13:19:00 +0000
committerwiz <wiz@pkgsrc.org>2017-07-25 13:19:00 +0000
commit026632668060a33d34eff96a2e2cb385ddfe69e7 (patch)
tree5dd15bd2834a9defe2b92070163075daad8fcedf /lang/gcc7
parentd591a9b0f3338d5a421c8843d918554965a79d2e (diff)
downloadpkgsrc-026632668060a33d34eff96a2e2cb385ddfe69e7.tar.gz
Pass relro linker flags.
Fixes RELRO for most binaries, except for libgcc_s.so.
Diffstat (limited to 'lang/gcc7')
-rw-r--r--lang/gcc7/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/gcc7/Makefile b/lang/gcc7/Makefile
index 231f517b63e..2fe0455cdc6 100644
--- a/lang/gcc7/Makefile
+++ b/lang/gcc7/Makefile
@@ -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