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
$(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