summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2014-08-04 10:35:10 (GMT)
committerSamuel Lidén Borell <samuel@kodafritt.se>2014-08-04 10:35:10 (GMT)
commit7cc3510bc3731e876d3c5a187ccc03389a990c8b (patch)
tree847cd35ab9af13bf0b2c3948354141b5db936e50
parent958d76d2326023df444acd12a5249415c4315e9a (diff)
downloadfribid-7cc3510bc3731e876d3c5a187ccc03389a990c8b.zip
fribid-7cc3510bc3731e876d3c5a187ccc03389a990c8b.tar.gz
fribid-7cc3510bc3731e876d3c5a187ccc03389a990c8b.tar.bz2
Build with -fPIE/-pie and -lpthread
The former is needed for further security hardening which may be done by the kernel (e.g. ASLR) or the distribution (e.g. Debian adding extra hardenings only when PIE is enabled). The latter is needed in case the pthread functions are not available from the other libraries or a dependency of them.
-rw-r--r--client/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/Makefile b/client/Makefile
index ec66b0b..521bebd 100644
--- a/client/Makefile
+++ b/client/Makefile
@@ -22,10 +22,9 @@
CFLAGS ?= -O2 -g
PKGCONFIG_CFLAGS=`../configure --internal--get-pc-cflags`
-CCFLAGS:=$(CFLAGS) -Wall -Wextra -std=c99 -pedantic -Wno-unused-parameter -I../npapi/include $(PKGCONFIG_CFLAGS) -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1 -DGSEAL_ENABLE -DFRIBID_CLIENT
-# You may have to add -lpthread after $(LDFLAGS) on OpenBSD
-LINKFLAGS:=$(CFLAGS) $(LDFLAGS) -Wl,--as-needed
-LIBS=`../configure --internal--get-pc-libs`
+CCFLAGS:=$(CFLAGS) -Wall -Wextra -std=c99 -pedantic -Wno-unused-parameter -I../npapi/include $(PKGCONFIG_CFLAGS) -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1 -DGSEAL_ENABLE -DFRIBID_CLIENT -fPIE
+LINKFLAGS:=$(CFLAGS) $(LDFLAGS) -Wl,--as-needed -pie
+LIBS=`../configure --internal--get-pc-libs` -lpthread
# Files to be installed
LIBEXEC_PATH=`../configure --internal--get-define=LIBEXEC_PATH`