1From 979b2b6a1aa574a26e8b736049c4207d568f60f3 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Thu, 13 Apr 2017 17:39:07 -0700 4Subject: [PATCH] configure: Pass linker specific options with -Wl 5 6This helps make it pass the options to linker correctly 7and we can use non-gcc compilers 8 9Signed-off-by: Khem Raj <raj.khem@gmail.com> 10 11--- 12 configure.ac | 2 +- 13 1 file changed, 1 insertion(+), 1 deletion(-) 14 15diff --git a/configure.ac b/configure.ac 16index 12a5d5c..5b86730 100644 17--- a/configure.ac 18+++ b/configure.ac 19@@ -596,7 +596,7 @@ if test -z "$OSAF_HARDEN_FLAGS"; then 20 if echo "${CFLAGS} ${CXXFLAGS}" | grep -q -- -O0; then 21 OSAF_HARDEN_FLAGS="" 22 fi 23- OSAF_HARDEN_FLAGS="${OSAF_HARDEN_FLAGS} -fstack-protector --param ssp-buffer-size=4 -fPIE -pie -zrelro -znow" 24+ OSAF_HARDEN_FLAGS="${OSAF_HARDEN_FLAGS} -fstack-protector --param ssp-buffer-size=4 -fPIE -pie -Wl,-z,relro,-z,now" 25 fi 26 AC_SUBST(OSAF_HARDEN_FLAGS) 27 28