blob: e4bbb4c3cdaa972e8dc31a4b4899c56441cf0966 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 979b2b6a1aa574a26e8b736049c4207d568f60f3 Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: 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>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080010
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011---
12 configure.ac | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/configure.ac b/configure.ac
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016index 12a5d5c..5b86730 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050017--- a/configure.ac
18+++ b/configure.ac
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080019@@ -596,7 +596,7 @@ if test -z "$OSAF_HARDEN_FLAGS"; then
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020 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