From: Michael Tremer Date: Sun, 3 May 2015 15:29:54 +0000 (-0400) Subject: Explicitely add hardening to the LDFLAGS X-Git-Tag: 0.9.27~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=634471f412b6e4daa215010f1a9348ff0fd6d629;p=pakfire.git Explicitely add hardening to the LDFLAGS Signed-off-by: Michael Tremer --- diff --git a/macros/cflags.macro b/macros/cflags.macro index c52ef19ff..46dea1078 100644 --- a/macros/cflags.macro +++ b/macros/cflags.macro @@ -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