[Win32] Add code to remove the bug-compatibility entries (see #134813, and

2004-09-22  Tor Lillqvist  <tml@iki.fi>

	* Makefile.am (install-libtool-import-lib): [Win32] Add code to
	remove the bug-compatibility entries (see #134813, and related
	comments below) from the import library. The PRIVATE keyword in
	the .def file is supposed to mean that, but it isn't implemented
	yet by GNU ld.
This commit is contained in:
Tor Lillqvist 2004-09-22 22:35:17 +00:00 committed by Tor Lillqvist
parent 631d6cf8d5
commit aea0abdd14
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2004-09-22 Tor Lillqvist <tml@iki.fi>
* Makefile.am (install-libtool-import-lib): [Win32] Add code to
remove the bug-compatibility entries (see #134813, and related
comments below) from the import library. The PRIVATE keyword in
the .def file is supposed to mean that, but it isn't implemented
yet by GNU ld.
2004-08-13 Matthias Clasen <clasen@redhat.com> 2004-08-13 Matthias Clasen <clasen@redhat.com>
* === Released 2.4.6 === * === Released 2.4.6 ===

View File

@ -39,6 +39,14 @@ if OS_WIN32
export_symbols = -export-symbols $(srcdir)/gobject.def export_symbols = -export-symbols $(srcdir)/gobject.def
install-libtool-import-lib: install-libtool-import-lib:
# Don't put the bug compatibility entries in the import lib!
# (Unfortunately the GNU linker doesn't yet understand the PRIVATE
# directive in .def files.)
#
for entry in `grep PRIVATE gobject.def | sed -e 's/PRIVATE//'`; do \
file=`nm -A .libs/libgobject-2.0.dll.a | grep -m 1 $$entry | cut -d: -f2`; \
ar d .libs/libgobject-2.0.dll.a $$file; \
done
$(INSTALL) .libs/libgobject-2.0.dll.a $(DESTDIR)$(libdir) $(INSTALL) .libs/libgobject-2.0.dll.a $(DESTDIR)$(libdir)
$(INSTALL) $(srcdir)/gobject.def $(DESTDIR)$(libdir)/gobject-2.0.def $(INSTALL) $(srcdir)/gobject.def $(DESTDIR)$(libdir)/gobject-2.0.def