1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 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)
|