From 4ac1d2807cccef60f9874a43f55863ad9000666d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 9 Dec 2014 14:58:02 +0100 Subject: enable pisition independent code / executable by default --- Makefile | 2 +- lib/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a80d280..2e682fc 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ SED := sed PNGCHK := pngcheck ZBARIMG := zbarimg # flags -CFLAGS += -std=c11 -O2 -Wall -Werror +CFLAGS += -std=c11 -O2 -fpic -pie -Wall -Werror CFLAGSSTATIC = $(CFLAGS) CFLAGSSTATIC += -liniparser CFLAGSSTATIC += $(shell pkg-config --cflags --libs libpng) diff --git a/lib/Makefile b/lib/Makefile index d5fb710..256f60b 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -2,7 +2,7 @@ CC := gcc LN := ln -CFLAGS += -std=c11 -O2 -Wall -Werror +CFLAGS += -std=c11 -O2 -fpic -pie -Wall -Werror CFLAGS += -liniparser CFLAGS += $(shell pkg-config --cflags --libs libpng) CFLAGS += $(shell pkg-config --cflags --libs zlib) -- cgit v1.2.3-70-g09d2