summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-27 10:00:04 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-27 10:00:04 (GMT)
commit4762fcbebf31e7928be9f192e5245fb959f1aa27 (patch)
tree909700c57790a09978956d4f4db2b73af81b3f4f
parent75c24bb73482127a8b2f9ef794c79e2b5a597b85 (diff)
Updated Debian rules.
-rw-r--r--debian/rules39
1 files changed, 33 insertions, 6 deletions
diff --git a/debian/rules b/debian/rules
index 20abc6a..b13df8e 100644
--- a/debian/rules
+++ b/debian/rules
@@ -18,10 +18,37 @@ include /usr/share/dpkg/default.mk
# main packaging script based on dh7 syntax
%:
- dh $@ --with autotools-dev
+ dh $@ --with autoreconf
-# debmake generated override targets
-# This is example for Cmake (See http://bugs.debian.org/641051 )
-#override_dh_auto_configure:
-# dh_auto_configure -- \
-# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+
+override_dh_autoreconf:
+
+ sed -i 's#result = false#//result = false#' "tools/d2c/conv/manager.c"
+
+ ./tools/ipf/init_potfiles.sh
+
+ cp /usr/share/gettext/gettext.h .
+
+ # Create a timestamp mark
+ echo "timestamp" > stamp-h.in
+
+ # As some Makefiles expect an external fragment built dynamically, ensure these files exist
+ touch plugins/arm/v7/opcodes/gencode.mk
+ touch plugins/dalvik/v35/opcodes/gencode.mk
+
+ touch ChangeLog
+
+ dh_autoreconf
+
+
+PIE = $(shell dpkg-buildflags --status | grep hardening | sed 's/.*pie=\([^ ]*\).*/\1/' )
+
+override_dh_auto_configure:
+
+ifeq ($(PIE),yes)
+ echo PIE
+ dh_auto_configure -- CFLAGS=-fPIC
+else
+ echo NO PIE
+ dh_auto_configure --
+endif