blob: 5756a027b47bd05cd844fa48b024b7ec2f447dc0 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 6248b717b4861d16b80235fd8e57d64e4f636428 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 configure.ac | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/configure.ac b/configure.ac
15index df4fc58..02771c6 100644
16--- a/configure.ac
17+++ b/configure.ac
18@@ -553,7 +553,7 @@ if test -z "$OSAF_HARDEN_FLAGS"; then
19 if echo "${CFLAGS} ${CXXFLAGS}" | grep -q -- -O0; then
20 OSAF_HARDEN_FLAGS=""
21 fi
22- OSAF_HARDEN_FLAGS="${OSAF_HARDEN_FLAGS} -fstack-protector --param ssp-buffer-size=4 -fPIE -pie -zrelro -znow"
23+ OSAF_HARDEN_FLAGS="${OSAF_HARDEN_FLAGS} -fstack-protector --param ssp-buffer-size=4 -fPIE -pie -Wl,-z,relro,-z,now"
24 fi
25 AC_SUBST(OSAF_HARDEN_FLAGS)
26
27--
282.12.2
29