From 2d8884e250435bbe68a1ab33b1c32dd22d139260 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Mon, 14 Aug 2017 09:02:49 +0900 Subject: [PATCH] Add the PIE option for the excutable binary Change-Id: I735bccb793cbadb7feab327e9da88f029761238e Signed-off-by: DoHyun Pyun --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8d6c700..e9bc362 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,9 @@ INSTALL ?= install CC ?= "gcc" CFLAGS ?= -O2 -g -CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration +CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -fPIE + +LDFLAGS += -pie OBJS = rfkill.o version.o ALL = rfkill -- 2.7.4