]> git.ipfire.org Git - people/ms/pakfire.git/commitdiff
Explicitely add hardening to the LDFLAGS
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 3 May 2015 15:29:54 +0000 (11:29 -0400)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Oct 2016 19:52:17 +0000 (15:52 -0400)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
macros/cflags.macro

index c52ef19ff2cdd92122fdda321ce78e1e874f3af0..46dea107804b2a2ec56cc2ed9071d5127b1d81c7 100644 (file)
@@ -2,7 +2,7 @@
 # Export CFLAGS + CXXFLAGS
 GLOBAL_CFLAGS   = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror=format-security
 GLOBAL_CFLAGS  += -fexceptions -fPIC -fstack-protector-strong --param=ssp-buffer-size=4
-GLOBAL_CFLAGS  += -grecord-gcc-switches -Wl,-z,relro -Wl,-z,now
+GLOBAL_CFLAGS  += -grecord-gcc-switches
 
 CFLAGS_i686     = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables
 CFLAGS_x86_64   = -m64 -mtune=generic
@@ -12,4 +12,4 @@ CFLAGS_armv7hl  = -march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard -mthumb
 export CFLAGS   = %{GLOBAL_CFLAGS} %{CFLAGS_%{DISTRO_ARCH}}
 export CXXFLAGS = %{CFLAGS}
 
-export LDFLAGS  =
+export LDFLAGS  = -Wl,-z,relro -Wl,-z,now