Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2010-03-07 09:56:29 (GMT)
committer Yaakov Selkowitz <yselkowitz@users.sourceforge.net>2010-03-07 09:56:29 (GMT)
commitf001a472ae8bdcf320870b97de93489d65400839 (patch)
treea9cbc8c3ebd4359ec06dc8e2697dd7306c07f569
parentfda40a27dde91b8885acece1767ab6d0a82b381f (diff)
Fix GST_*_LDFLAGS for portability
Some platforms require '-no-undefined' for all libraries and modules. Define GST_ALL_LDFLAGS as such and use it in GST_PLUGIN_LDFLAGS. Also fix GST_PLUGIN_LDFLAGS to export the only symbol that plugins must export. Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d48d1fd..586978d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -123,8 +123,13 @@ else
fi
AC_SUBST(plugindir)
+dnl LDFLAGS really should only contain flags, not libs - they get added before
+dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
+GST_ALL_LDFLAGS="-no-undefined"
+AC_SUBST(GST_ALL_LDFLAGS)
+
dnl set proper LDFLAGS for plugins
-GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
+GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*\(gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
AC_SUBST(GST_PLUGIN_LDFLAGS)
dnl check espeak dependencies