[SCM] libav-extra/master: Enable hardened build flags through dpkg-buildflags (Closes: #658929).

ceros-guest at users.alioth.debian.org ceros-guest at users.alioth.debian.org
Sun Mar 18 21:23:17 UTC 2012


The following commit has been merged in the master branch:
commit 3d3189fa9df8a502c4c7fa16a95958ab73b4c0c3
Author: Fabian Greffrath <fabian at greffrath.com>
Date:   Fri Mar 2 13:45:57 2012 +0100

    Enable hardened build flags through dpkg-buildflags (Closes: #658929).

diff --git a/debian/confflags b/debian/confflags
index cbc9f16..40d20a5 100644
--- a/debian/confflags
+++ b/debian/confflags
@@ -157,9 +157,10 @@ ifneq (,$(findstring linux,$(DEB_HOST_GNU_TYPE)))
   lib1394-dev += libraw1394-dev, libdc1394-22-dev
 endif
 
-# Sanitize injected compiler in linker flags
-CFLAGS :=
-LDFLAGS :=
+# Enable hardened build flags through dpkg-buildflags
+CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
+CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
+LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 # Various parts of Libav (and swscale) FTBFS when compiling with -fPIC

-- 
libav-extra packaging



More information about the pkg-multimedia-commits mailing list