[SCM] gpac/master: Pass CFLAGS and LDFLAGS to ./configure
rbalint at users.alioth.debian.org
rbalint at users.alioth.debian.org
Wed Jul 8 08:05:20 UTC 2015
The following commit has been merged in the master branch:
commit f6c202d0ff973daf15bfb957a8d5ebadeaf1851b
Author: Balint Reczey <balint at balintreczey.hu>
Date: Tue Jul 7 17:02:58 2015 -0700
Pass CFLAGS and LDFLAGS to ./configure
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 \
--
gpac packaging
More information about the pkg-multimedia-commits
mailing list