From f6c202d0ff973daf15bfb957a8d5ebadeaf1851b Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Tue, 7 Jul 2015 17:02:58 -0700 Subject: [PATCH] Pass CFLAGS and LDFLAGS to ./configure --- debian/rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 588c99c..c246f7d 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,8 @@ DEB_CONFIGURE_EXTRA_FLAGS = --disable-opt endif DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH +DEB_CFLAGS ?= $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS) +DEB_LDFLAGS ?= $(shell dpkg-buildflags --get LDFLAGS) %: dh $@ --parallel @@ -19,7 +21,8 @@ override_dh_auto_configure: --prefix=/usr \ --libdir=lib/$(DEB_HOST_MULTIARCH) \ --mandir=\$${prefix}/share/man \ - --extra-cflags="-Wall -fPIC -DPIC -I/usr/include/mozjs -DXP_UNIX" \ + --extra-cflags="-Wall -fPIC -DPIC -I/usr/include/mozjs -DXP_UNIX $(DEB_CFLAGS)" \ + --extra-ldflags="$(DEB_LDFLAGS)" \ --enable-joystick \ --enable-debug \ --disable-ssl \ -- 2.30.2