defaults.conf: move -z now to hardened-ld only.

This commit is contained in:
Christian Neukirchen 2015-03-08 19:54:32 +01:00
parent 4d99da275f
commit cd01759127
2 changed files with 2 additions and 2 deletions

View File

@ -2,4 +2,4 @@
+ %{static|Bstatic|shared|Bshareable|i|r|pie|nopie:;:-pie}
*link:
+ %{!static:-z relro}
+ %{!static:-z relro -z now}

View File

@ -33,7 +33,7 @@ XBPS_CPPFLAGS="-D_FORTIFY_SOURCE=2"
# avoid linking extra libraries into binaries. See the following link
# for info: http://www.gentoo.org/proj/en/qa/asneeded.xml
#
XBPS_LDFLAGS="-Wl,--as-needed -Wl,-z,relro,-z,now"
XBPS_LDFLAGS="-Wl,--as-needed -Wl,-z,relro"
# [REQUIRED]
# Command to execute to gain root privileges when using the `update-sys`