Package: gmerlin-encoders / 2.0.0~svn6278-6

plugins-ldflags.patch Patch series | download
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
27
28
29
30
31
32
33
34
From: Debian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Date: Tue, 13 Aug 2024 09:45:27 +0200
Subject: pass LDFLAGS to plugins

Last-Update: 2014-01-31

LDFLAGS passed to ./configure should not be ignored during build,
esp. if we intend to support hardening
Last-Update: 2014-01-31
---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index e803d70..bfd0d6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,6 +5,7 @@ AM_INIT_AUTOMAKE
 AM_CONFIG_HEADER(include/config.h)
 
 SAVE_CFLAGS=$CFLAGS
+SAVE_LDFLAGS=$LDFLAGS
 AC_DISABLE_STATIC
 AC_LANG(C)
 AC_PROG_LIBTOOL
@@ -27,7 +28,7 @@ PKG_CHECK_MODULES(GMERLIN, gmerlin >= $GMERLIN_REQUIRED, , AC_MSG_ERROR("gmerlin
 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)