1From d67e93ada37d7237983fd10894c18b92f4243d50 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 18 Mar 2017 08:51:45 -0700
4Subject: [PATCH] Makefile: Append instead of overriding LDFLAGS
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8Upstream-Status: Pending
9
10 Makefile | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/Makefile b/Makefile
14index 28557ff..deed94c 100644
15--- a/Makefile
16+++ b/Makefile
17@@ -29,7 +29,7 @@ OPT_FLAGS := -O2
18 # for older versions of grsecurity, comment the above line and uncomment the below:
19 #OPT_FLAGS := $(shell if [ "`uname -m`" != "sparc64" ] && [ "`uname -m`" != "x86_64" ]; then echo "-O2" ; else echo "-O2 -m64" ; fi)
20 CFLAGS := $(OPT_FLAGS) -fPIE -Wcast-qual -DGRSEC_DIR=\"$(GRSEC_DIR)\" -D_LARGEFILE64_SOURCE
21-LDFLAGS= -pie
22+LDFLAGS+= -pie
23 INSTALL = /usr/bin/install -c
24
25 # FHS
26--
272.12.0
28
29