Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
[Win32] Add code to remove the bug-compatibility entries (see #134813…
Browse files Browse the repository at this point in the history
…, 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.
  • Loading branch information
tml1024 authored and Tor Lillqvist committed Sep 22, 2004
1 parent 631d6cf commit aea0abd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gobject/ChangeLog
@@ -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>

* === Released 2.4.6 ===
Expand Down
8 changes: 8 additions & 0 deletions gobject/Makefile.am
Expand Up @@ -39,6 +39,14 @@ if OS_WIN32
export_symbols = -export-symbols $(srcdir)/gobject.def

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) $(srcdir)/gobject.def $(DESTDIR)$(libdir)/gobject-2.0.def

Expand Down

0 comments on commit aea0abd

Please sign in to comment.