diff options
Diffstat (limited to '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 | 
