[SCM] handbrake/master: Filter optimization and debug flags out of dpkg-buildflags.

fabian-guest at users.alioth.debian.org fabian-guest at users.alioth.debian.org
Sun Jun 10 21:39:26 UTC 2012


The following commit has been merged in the master branch:
commit 7719d08b43a3f1a1e882434d2c0a30e297a403e7
Author: Fabian Greffrath <fabian at greffrath.com>
Date:   Sun Jun 10 23:39:14 2012 +0200

    Filter optimization and debug flags out of dpkg-buildflags.

diff --git a/debian/rules b/debian/rules
index 4c84663..41308b3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,9 @@
 CC:=ccache $(CC)
 CXX:=ccache $(CXX)
 
+CFLAGS   = $(shell dpkg-buildflags --get CFLAGS   2>/dev/null | sed -e 's/-g\|-O2//g')
+CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS 2>/dev/null | sed -e 's/-g\|-O2//g')
+
 %:
 	dh $@ --builddirectory=build
 
@@ -12,7 +15,8 @@ override_dh_auto_configure:
 
 	./configure --prefix=/usr --build build \
 		--gcc=/usr/lib/ccache/gcc \
-		CC="$(CC)" CXX="$(CXX)"
+		CC="$(CC)" CXX="$(CXX)" \
+		CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)"
 
 override_dh_auto_install:
 	dh_auto_install --destdir=debian/tmp

-- 
handbrake packaging



More information about the pkg-multimedia-commits mailing list