[MPlayer-cvslog] r29469 - trunk/debian/rules
diego
subversion at mplayerhq.hu
Sun Aug 2 17:17:27 CEST 2009
Author: diego
Date: Sun Aug 2 17:17:26 2009
New Revision: 29469
Log:
dpkg-buildpackage automatically sets CFLAGS and pals to -g -O2.
Unset CFLAGS and friends to avoid failures when building Debian packages.
patch from the official Debian package, submitted by Anton Khirnov
Modified:
trunk/debian/rules
Modified: trunk/debian/rules
==============================================================================
--- trunk/debian/rules Sun Aug 2 16:50:24 2009 (r29468)
+++ trunk/debian/rules Sun Aug 2 17:17:26 2009 (r29469)
@@ -10,6 +10,9 @@ prefix := $(shell pwd)/debian/$(package)
arch := $(shell dpkg --print-architecture)
+# See http://wiki.debian.org/Teams/Dpkg/DebianRules; #465282 and
+# https://wiki.ubuntu.com/DistCompilerFlags
+CLEAN_ENV=env -u CFLAGS -u CPPFLAGS -u LDFLAGS -u FFLAGS -u CXXFLAGS
configure: configure-stamp
configure-stamp:
@@ -19,6 +22,7 @@ configure-stamp:
# If you plan to install the target .deb on a wide variety of machines,
# you may want to add the "--enable-runtime-cpudetection" option to
# the line below, but beware: the resulting binary will run slower
+ $(CLEAN_ENV) \
./configure --prefix=/usr --confdir=/etc/mplayer $(DEB_BUILD_OPTIONS)
touch configure-stamp
@@ -28,6 +32,7 @@ build-stamp:
dh_testdir
# commands to compile the package.
+ $(CLEAN_ENV) \
${MAKE}
touch build-stamp
More information about the MPlayer-cvslog
mailing list