diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-03-27 10:00:04 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-03-27 10:00:04 (GMT) |
commit | 4762fcbebf31e7928be9f192e5245fb959f1aa27 (patch) | |
tree | 909700c57790a09978956d4f4db2b73af81b3f4f | |
parent | 75c24bb73482127a8b2f9ef794c79e2b5a597b85 (diff) |
Updated Debian rules.
-rw-r--r-- | debian/rules | 39 |
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 |