File: propagate-ldflags-to-plugins.patch

package info (click to toggle)
gmerlin-avdecoder 2.0.0~svn6298~dfsg0-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,272 kB
  • sloc: ansic: 94,582; makefile: 709; sh: 705; awk: 43; sed: 16
file content (26 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (4)
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: propagate LDFLAGS to plugins
Author: IOhannes m zmölnig
Forwarded: no
Last-Update: 2013-1210
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- gmerlin-avdecoder.orig/configure.ac
+++ gmerlin-avdecoder/configure.ac
@@ -24,6 +24,8 @@
 AC_SUBST(LTVERSION_AGE)
 
 OLD_CFLAGS=$CFLAGS
+XTRA_LDFLAGS=$LDFLAGS
+AC_SUBST([XTRA_LDFLAGS])
 
 AC_LANG(C)
 
@@ -182,7 +184,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 ${XTRA_LDFLAGS}"
 
 fi