From d59cb5f1999d2ea538b472fdb40dad92b0b36f74 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 3 May 2016 16:23:49 +0200 Subject: fix compiler and linker flags and produce binaries with full RELRO --- bin/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/Makefile b/bin/Makefile index 25faea9..a34dec1 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -3,7 +3,8 @@ CC := gcc INSTALL := install RM := rm # flags -CFLAGS += -std=gnu11 -O2 -fpic -pie -Wall -Werror +CFLAGS += -std=gnu11 -O2 -fPIC -Wall -Werror +LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie all: ykfde ykfde-cpio -- cgit v1.2.3-54-g00ecf