From b407dbed23bc42384c6b4d031817bf18fb155cc3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?=
 <zmoelnig@umlautQ.umlaeute.mur.at>
Date: Mon, 1 Sep 2014 09:22:28 +0200
Subject: [PATCH] Added "-fPIC" to build-flags (Closes: #759830)

since we override CFLAGS completely, we also need to
pass "-fPIC"
---
 debian/rules | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index b2e62cf..b884344 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,8 +23,12 @@ include /usr/share/cdbs/1/rules/utils.mk
 
 DEB_SRCDIR=src
 
-CFLAGS+=$(CPPFLAGS) $(shell pkg-config --cflags lua5.2 pd) -Wno-error=format-security
-LIBS+=$(shell   pkg-config --libs   lua5.2) $(LDFLAGS)
+CFLAGS+=$(CPPFLAGS)				\
+	$(shell pkg-config --cflags lua5.2 pd)	\
+	-fPIC					\
+	-Wno-error=format-security
+LIBS+=$(shell   pkg-config --libs   lua5.2)	\
+	$(LDFLAGS)
 DEB_MAKE_EXTRA_ARGS = CFLAGS="$(CFLAGS)" LIBS="$(LIBS)" $(DEB_MAKE_PARALLEL)
 
 test:
-- 
GitLab