Mercurial > mplayer.hg
changeset 29427:ba2cb7c23fa2
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
author | diego |
---|---|
date | Sun, 02 Aug 2009 15:17:26 +0000 |
parents | 1cedde378788 |
children | 2b12440cca99 |
files | debian/rules |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/debian/rules Sun Aug 02 14:50:24 2009 +0000 +++ b/debian/rules Sun Aug 02 15:17:26 2009 +0000 @@ -10,6 +10,9 @@ 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 @@ # 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 @@ dh_testdir # commands to compile the package. + $(CLEAN_ENV) \ ${MAKE} touch build-stamp