common/as-libtool.mak: Fine-tune DLL building.
authorDavid Schleef <ds@schleef.org>
Tue, 20 Apr 2004 22:21:59 +0000 (22:21 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 20 Apr 2004 22:21:59 +0000 (22:21 +0000)
Original commit message from CVS:
* common/as-libtool.mak: Fine-tune DLL building.
* configure.ac: Link plugins against libgstreamer.  Define plugindir
(like gst-plugins)
* examples/plugins/Makefile.am: remove plugindir
* gst/autoplug/Makefile.am: DLL building fixes
* gst/elements/Makefile.am: DLL building fixes.  Disable pipefilter on
Windows.
* gst/elements/gstelements.c: Conditionally disable pipefilter.
* gst/indexers/Makefile.am: DLL building fixes
* gst/schedulers/Makefile.am: DLL building fixes.
* libs/gst/bytestream/Makefile.am: DLL building fixes.
* libs/gst/control/Makefile.am: same
* libs/gst/getbits/Makefile.am: same
* testsuite/Makefile.am: New dlopen directory
* testsuite/dlopen/Makefile.am: Tests to check if libgstreamer works
when dlopened.
* testsuite/dlopen/dlopen_gst.c: (main): same
* testsuite/dlopen/loadgst.c: (do_test): same

as-libtool.mak

index 1ddf1e39a0e61735009cd99a38e502bbbb5a94ab..dabbecfd703c8997ad76544077730bf340a39ca8 100644 (file)
@@ -14,18 +14,16 @@ if AS_LIBTOOL_WIN32
 
 as_libtool_noinst_DATA_files = $(AS_LIBTOOL_LIB).lib
 
-as_libtool_LDFLAGS = -no-undefined -export-symbols $(srcdir)/$(AS_LIBTOOL_LIB).def
+as_libtool_LDFLAGS = -no-undefined
 
 # depend on this in install-data-local
 as-libtool-install-data-local:
        $(INSTALL) $(AS_LIBTOOL_LIB).lib $(DESTDIR)$(libdir)
-       $(INSTALL) .libs/$(AS_LIBTOOL_LIB).dll.a $(DESTDIR)$(libdir)
-       $(INSTALL) $(srcdir)/$(AS_LIBTOOL_LIB).def $(DESTDIR)$(libdir)
+       $(INSTALL) $(AS_LIBTOOL_LIB).def $(DESTDIR)$(libdir)
 
 # depend on this in uninstall-local
 as-libtool-uninstall-local:
        -rm $(DESTDIR)$(libdir)/$(AS_LIBTOOL_LIB).lib
-       -rm $(DESTDIR)$(libdir)/$(AS_LIBTOOL_LIB).dll.a
        -rm $(DESTDIR)$(libdir)/$(AS_LIBTOOL_LIB).def
 
 else
@@ -41,9 +39,9 @@ $(AS_LIBTOOL_LIB).lib: $(AS_LIBTOOL_LIB).la $(AS_LIBTOOL_LIB).def
 
 $(AS_LIBTOOL_LIB).def:
        echo EXPORTS >$(AS_LIBTOOL_LIB).def.tmp
-       nm --defined-only -g .libs/$(AS_LIBTOOL_LIB).so | \
+       nm --defined-only -g .libs/$(AS_LIBTOOL_LIB).a | \
+               grep ^0 | \
                awk '{ print $$3 }' | \
-               grep -v '^{_DYNAMIC,_GLOBAL_OFFSET_TABLE_,__bss_start,_edata,_end,_fini,_init}$$' | \
                sed 's/^/       /' >>$(AS_LIBTOOL_LIB).def.tmp
        mv $(AS_LIBTOOL_LIB).def.tmp $(AS_LIBTOOL_LIB).def