[SCM] audacity/master: Enable hardened build flags through dpkg-buildflags.

bdrung at users.alioth.debian.org bdrung at users.alioth.debian.org
Thu Mar 1 13:34:38 UTC 2012


The following commit has been merged in the master branch:
commit 468258d24ebf716110701670885695ee41c91624
Author: Benjamin Drung <bdrung at debian.org>
Date:   Thu Mar 1 14:34:29 2012 +0100

    Enable hardened build flags through dpkg-buildflags.

diff --git a/debian/rules b/debian/rules
index 5db3cdb..b43fe66 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,10 @@
 #!/usr/bin/make -f
 
-# Do not link against unused libraries (make dpkg-shlibdeps happy).
-LDFLAGS += -Wl,-z,defs -Wl,--as-needed
-
 configure_flags := \
+	CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \
+	CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" \
+	CXXFLAGS="$(shell dpkg-buildflags --get CXXFLAGS)" \
+	LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS) -Wl,-z,defs -Wl,--as-needed" \
 	--disable-dynamic-loading \
 	--with-expat=system \
 	--with-ffmpeg=system \

-- 
Audacity debian packaging



More information about the pkg-multimedia-commits mailing list