summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-02 15:17:26 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-02 15:17:26 +0000
commit3e398a6a2e2b5b8203cf1ee9bf17059906f662fb (patch)
treefb09d775f094791182868642959a865d3cc1b853 /debian
parentc8bbeea3b202f3b6569fccbc38d10d803173a8f5 (diff)
downloadmpv-3e398a6a2e2b5b8203cf1ee9bf17059906f662fb.tar.bz2
mpv-3e398a6a2e2b5b8203cf1ee9bf17059906f662fb.tar.xz
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29469 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index c486af5dff..17c06b0621 100755
--- a/debian/rules
+++ b/debian/rules
@@ -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