blob: dcb4306494eeab6e0033eb3bfef3b60f7beae87c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From 422004616c651c18b58e56d32993ddbb7db56c93 Mon Sep 17 00:00:00 2001
From: Hyunjee Kim <hj0426.kim@samsung.com>
Date: Wed, 4 Dec 2019 13:45:53 +0900
Subject: [PATCH] Add pie option
Change-Id: Ic2b940da22944eed94d3a50cb983c4af09339e02
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
diff --git a/Makefile b/Makefile
index 2892f11..7b84b9a 100644
--- a/Makefile
+++ b/Makefile
@@ -322,7 +322,7 @@ endif
# PostScript and PDF generation from UTF-8 manuals is not working,
# or I don't know how to do it.
-CFLAGS_USER =
+CFLAGS_USER = -fPIC
ifeq ($(DEBUG), 1)
CFLAGS ?= -O0
else
@@ -357,7 +357,7 @@ ifdef LFS
EXTRA_CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
endif
-LDFLAGS_USER =
+LDFLAGS_USER = -pie
LDFLAGS = $(RPM_LD_FLAGS) $(LDFLAGS_EXTRA) $(LDFLAGS_USER)
LIBS = $(LIBS_EXTRA)
--
2.17.1
|