[SCM] vlc/master: Enable hardened build flags through dpkg-buildflags.
bdrung at users.alioth.debian.org
bdrung at users.alioth.debian.org
Thu Mar 1 12:56:38 UTC 2012
The following commit has been merged in the master branch:
commit 64ab9acf98c49b8f1a5750f235150c80c1875990
Author: Benjamin Drung <bdrung at debian.org>
Date: Thu Mar 1 13:49:57 2012 +0100
Enable hardened build flags through dpkg-buildflags.
Closes: #658030
diff --git a/debian/rules b/debian/rules
index 6c3a0f4..c9c7f51 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,10 +21,12 @@ ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
confflags += --disable-optimizations --disable-mmx --disable-sse --disable-altivec
endif
-LDFLAGS = -Wl,--as-needed
-
# configure flags
confflags += \
+ 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,--as-needed" \
--config-cache \
--disable-maintainer-mode \
--disable-silent-rules \
--
VLC media player packaging
More information about the pkg-multimedia-commits
mailing list