Remove the DLL binary compatibilty entries from the import library. They

2004-12-05  Tor Lillqvist  <tml@iki.fi>

	* glib/Makefile.am (install-libtool-import-lib): Remove the DLL
	binary compatibilty entries from the import library. They aren't
	used by newly compiled code, so no need to have them in the import
	library. (The "PRIVATE" keyword in the .def file is supposed to do
	this, but not implemented in the GNU linker yet.)
This commit is contained in:
Tor Lillqvist 2004-12-05 04:18:13 +00:00 committed by Tor Lillqvist
parent bd177ce103
commit c795c65c42
6 changed files with 48 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2004-12-05 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (install-libtool-import-lib): Remove the DLL
binary compatibilty entries from the import library. They aren't
used by newly compiled code, so no need to have them in the import
library. (The "PRIVATE" keyword in the .def file is supposed to do
this, but not implemented in the GNU linker yet.)
2004-12-04 Matthias Clasen <mclasen@redhat.com> 2004-12-04 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_link_index): Return -1 if queue is * glib/gqueue.c (g_queue_link_index): Return -1 if queue is

View File

@ -1,3 +1,11 @@
2004-12-05 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (install-libtool-import-lib): Remove the DLL
binary compatibilty entries from the import library. They aren't
used by newly compiled code, so no need to have them in the import
library. (The "PRIVATE" keyword in the .def file is supposed to do
this, but not implemented in the GNU linker yet.)
2004-12-04 Matthias Clasen <mclasen@redhat.com> 2004-12-04 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_link_index): Return -1 if queue is * glib/gqueue.c (g_queue_link_index): Return -1 if queue is

View File

@ -1,3 +1,11 @@
2004-12-05 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (install-libtool-import-lib): Remove the DLL
binary compatibilty entries from the import library. They aren't
used by newly compiled code, so no need to have them in the import
library. (The "PRIVATE" keyword in the .def file is supposed to do
this, but not implemented in the GNU linker yet.)
2004-12-04 Matthias Clasen <mclasen@redhat.com> 2004-12-04 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_link_index): Return -1 if queue is * glib/gqueue.c (g_queue_link_index): Return -1 if queue is

View File

@ -1,3 +1,11 @@
2004-12-05 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (install-libtool-import-lib): Remove the DLL
binary compatibilty entries from the import library. They aren't
used by newly compiled code, so no need to have them in the import
library. (The "PRIVATE" keyword in the .def file is supposed to do
this, but not implemented in the GNU linker yet.)
2004-12-04 Matthias Clasen <mclasen@redhat.com> 2004-12-04 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_link_index): Return -1 if queue is * glib/gqueue.c (g_queue_link_index): Return -1 if queue is

View File

@ -1,3 +1,11 @@
2004-12-05 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (install-libtool-import-lib): Remove the DLL
binary compatibilty entries from the import library. They aren't
used by newly compiled code, so no need to have them in the import
library. (The "PRIVATE" keyword in the .def file is supposed to do
this, but not implemented in the GNU linker yet.)
2004-12-04 Matthias Clasen <mclasen@redhat.com> 2004-12-04 Matthias Clasen <mclasen@redhat.com>
* glib/gqueue.c (g_queue_link_index): Return -1 if queue is * glib/gqueue.c (g_queue_link_index): Return -1 if queue is

View File

@ -196,6 +196,14 @@ if OS_WIN32
export_symbols = -export-symbols $(srcdir)/glib.def export_symbols = -export-symbols $(srcdir)/glib.def
install-libtool-import-lib: install-libtool-import-lib:
# Don't put the binary 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 glib.def | sed -e 's/PRIVATE//'`; do \
file=`nm -A .libs/libglib-2.0.dll.a | tr -d '\r' | grep -m 1 -E $$entry'$$' | cut -d: -f2`; \
ar d .libs/libglib-2.0.dll.a $$file; \
done
$(INSTALL) .libs/libglib-2.0.dll.a $(DESTDIR)$(libdir) $(INSTALL) .libs/libglib-2.0.dll.a $(DESTDIR)$(libdir)
$(INSTALL) $(srcdir)/glib.def $(DESTDIR)$(libdir)/glib-2.0.def $(INSTALL) $(srcdir)/glib.def $(DESTDIR)$(libdir)/glib-2.0.def