[SCM] gmerlin-encoders/master: Use hardened LDFLAGS
zmoelnig-guest at users.alioth.debian.org
zmoelnig-guest at users.alioth.debian.org
Fri Jan 31 13:21:10 UTC 2014
The following commit has been merged in the master branch:
commit 6919bd9a6be79e458055ea002ca01d2c16216e5e
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date: Fri Jan 31 14:06:56 2014 +0100
Use hardened LDFLAGS
diff --git a/debian/patches/plugins-ldflags.patch b/debian/patches/plugins-ldflags.patch
new file mode 100644
index 0000000..b6c0fef
--- /dev/null
+++ b/debian/patches/plugins-ldflags.patch
@@ -0,0 +1,26 @@
+Description: pass LDFLAGS to plugins
+ LDFLAGS passed to ./configure should not be ignored during build,
+ esp. if we intend to support hardening
+Author: IOhannes m zmölnig
+Last-Update: 2014-01-31
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- gmerlin-encoders.orig/configure.ac
++++ gmerlin-encoders/configure.ac
+@@ -5,6 +5,7 @@
+ AM_INIT_AUTOMAKE(gmerlin-encoders, 1.2.0)
+
+ SAVE_CFLAGS=$CFLAGS
++SAVE_LDFLAGS=$LDFLAGS
+ AC_DISABLE_STATIC
+ AC_PROG_LIBTOOL
+
+@@ -50,7 +51,7 @@
+ gmerlin_plugindir='$(libdir)/gmerlin/plugins'
+
+ dnl LDFLAGS for plugins
+-GMERLIN_PLUGIN_LDFLAGS="-export-symbols "`pkg-config --variable=prefix gmerlin`"/share/gmerlin/plugin.sym"
++GMERLIN_PLUGIN_LDFLAGS="-export-symbols "`pkg-config --variable=prefix gmerlin`"/share/gmerlin/plugin.sym $SAVE_LDFLAGS"
+
+ AC_SUBST(GMERLIN_PLUGIN_LDFLAGS)
+ AC_SUBST(gmerlin_plugindir)
diff --git a/debian/patches/series b/debian/patches/series
index f192529..220dc6e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
libav.patch
fix_typos.patch
+plugins-ldflags.patch
--
gmerlin-encoders packaging
More information about the pkg-multimedia-commits
mailing list