diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-04-22 12:26:17 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-04-22 12:26:17 +0000 |
commit | c9b9c5382e0d438408240eb30583362d7705eb09 (patch) | |
tree | 952099146b7a1b5484d4577391e1ad2f89bc7ee7 /gst-plugin | |
parent | 41c8331552c0549b1b2ce8c912227575cfa7dc94 (diff) |
proper LDFLAGS
Original commit message from CVS:
proper LDFLAGS
Diffstat (limited to 'gst-plugin')
-rw-r--r-- | gst-plugin/ChangeLog | 9 | ||||
-rw-r--r-- | gst-plugin/Makefile.am | 4 | ||||
-rwxr-xr-x | gst-plugin/autogen.sh | 2 | ||||
-rw-r--r-- | gst-plugin/configure.ac | 8 | ||||
-rw-r--r-- | gst-plugin/src/Makefile.am | 5 |
5 files changed, 23 insertions, 5 deletions
diff --git a/gst-plugin/ChangeLog b/gst-plugin/ChangeLog index 6e7b4dc..9b34696 100644 --- a/gst-plugin/ChangeLog +++ b/gst-plugin/ChangeLog @@ -1,5 +1,14 @@ 2004-04-22 Thomas Vander Stichele <thomas at apestaart dot org> + * Makefile.am: + * autogen.sh: + * configure.ac: + * src/Makefile.am: + use proper LDFLAGS for plugins + run in maintainer mode by default + +2004-04-22 Thomas Vander Stichele <thomas at apestaart dot org> + * configure.ac: ... and fix comments too 2004-04-03 Benjamin Otte <otte@gnome.org> diff --git a/gst-plugin/Makefile.am b/gst-plugin/Makefile.am index 43340e8..af437a6 100644 --- a/gst-plugin/Makefile.am +++ b/gst-plugin/Makefile.am @@ -1,3 +1 @@ -SUBDIRS=src - -EXTRA_DIST=depcomp +SUBDIRS = src diff --git a/gst-plugin/autogen.sh b/gst-plugin/autogen.sh index 4e5358d..d8e0813 100755 --- a/gst-plugin/autogen.sh +++ b/gst-plugin/autogen.sh @@ -22,4 +22,4 @@ libtoolize --force || exit 1 # autoheader || exit 1 $AUTOMAKE -a || exit 1 $AUTOCONF || exit 1 -./configure $* +./configure --enable-maintainer-mode $* diff --git a/gst-plugin/configure.ac b/gst-plugin/configure.ac index 884a2ca..177846d 100644 --- a/gst-plugin/configure.ac +++ b/gst-plugin/configure.ac @@ -64,5 +64,13 @@ dnl make GST_LIBS_CFLAGS and GST_LIBS_LIBS available AC_SUBST(GST_LIBS_CFLAGS) AC_SUBST(GST_LIBS_LIBS) +dnl set the plugindir where plugins should be installed +plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR" +AC_SUBST(plugindir) + +dnl set proper LDFLAGS for plugins +GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*' +AC_SUBST(GST_PLUGIN_LDFLAGS) + AC_OUTPUT(Makefile src/Makefile) diff --git a/gst-plugin/src/Makefile.am b/gst-plugin/src/Makefile.am index f3d5322..9436f53 100644 --- a/gst-plugin/src/Makefile.am +++ b/gst-plugin/src/Makefile.am @@ -4,13 +4,16 @@ plugindir= $(libdir)/gstreamer-@GST_MAJORMINOR@ # change libgstplugin.la to something more suitable plugin_LTLIBRARIES = libgstplugin.la +# for the next set of variables, rename the prefix if you renamed the .la + # sources used to compile this plug-in libgstplugin_la_SOURCES = gstplugin.c # flags used to compile this plugin # we use the GST_LIBS flags because we might be using plug-in libs libgstplugin_la_CFLAGS = $(GST_LIBS_CFLAGS) -libgstplugin_la_LDFLAGS = $(GST_LIBS_LIBS) +libgstplugin_la_LIBADD = $(GST_LIBS_LIBS) +libgstplugin_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) # headers we need but don't want installed noinst_HEADERS = gstplugin.h |