summaryrefslogtreecommitdiffstats
path: root/bin/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-05-03 16:23:49 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-05-03 16:23:49 +0200
commitd59cb5f1999d2ea538b472fdb40dad92b0b36f74 (patch)
treee04cf531eeb1795d3b9bb3a5688896e756c4d3ab /bin/Makefile
parentbf1efdba13834414f1c222c902cd4e5f5f6cd499 (diff)
downloadmkinitcpio-ykfde-d59cb5f1999d2ea538b472fdb40dad92b0b36f74.tar.gz
mkinitcpio-ykfde-d59cb5f1999d2ea538b472fdb40dad92b0b36f74.tar.zst
fix compiler and linker flags and produce binaries with full RELRO
Diffstat (limited to 'bin/Makefile')
-rw-r--r--bin/Makefile3
1 files changed, 2 insertions, 1 deletions
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