From 34f3ddd0d71a8ac7574b9dc7470a76400c691f95 Mon Sep 17 00:00:00 2001 From: Jeroen Dekkers Date: Fri, 19 Oct 2012 16:05:41 +0200 Subject: [PATCH] Compile daemon as Position Independent Executable --- Main/GNUmakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Main/GNUmakefile b/Main/GNUmakefile index 382776728..962730cbc 100644 --- a/Main/GNUmakefile +++ b/Main/GNUmakefile @@ -4,9 +4,10 @@ include ../config.make include $(GNUSTEP_MAKEFILES)/common.make include ../Version -ADDITIONAL_INCLUDE_DIRS += +ADDITIONAL_OBJCFLAGS += -fPIE +ADDITIONAL_INCLUDE_DIRS += ADDITIONAL_LIB_DIRS += -L../SOPE/GDLContentStore/obj/ -ADDITIONAL_LDFLAGS += -Wl,--no-as-needed +ADDITIONAL_LDFLAGS += -Wl,--no-as-needed -fPIE -pie SOGOD = sogod TOOL_NAME = $(SOGOD)