Remove the DLL binary compatibilty entries from the import library. They
authorTor Lillqvist <tml@iki.fi>
Sun, 5 Dec 2004 04:18:13 +0000 (04:18 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sun, 5 Dec 2004 04:18:13 +0000 (04:18 +0000)
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.)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/Makefile.am

index 9e49f4bba247001613e1c310e2e6867d1a2ccd0f..4b765c5fe3acbee0ff3719bbeb5cc76d7577a667 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * glib/gqueue.c (g_queue_link_index): Return -1 if queue is 
index 9e49f4bba247001613e1c310e2e6867d1a2ccd0f..4b765c5fe3acbee0ff3719bbeb5cc76d7577a667 100644 (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>
 
        * glib/gqueue.c (g_queue_link_index): Return -1 if queue is 
index 9e49f4bba247001613e1c310e2e6867d1a2ccd0f..4b765c5fe3acbee0ff3719bbeb5cc76d7577a667 100644 (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>
 
        * glib/gqueue.c (g_queue_link_index): Return -1 if queue is 
index 9e49f4bba247001613e1c310e2e6867d1a2ccd0f..4b765c5fe3acbee0ff3719bbeb5cc76d7577a667 100644 (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>
 
        * glib/gqueue.c (g_queue_link_index): Return -1 if queue is 
index 9e49f4bba247001613e1c310e2e6867d1a2ccd0f..4b765c5fe3acbee0ff3719bbeb5cc76d7577a667 100644 (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>
 
        * glib/gqueue.c (g_queue_link_index): Return -1 if queue is 
index 8fb9e06049e2c52944bfb50e3ffe2e5873464633..c07dac4e71e2651b5320b5211317ebf791d9c35a 100644 (file)
@@ -196,6 +196,14 @@ if OS_WIN32
 export_symbols = -export-symbols $(srcdir)/glib.def
 
 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) $(srcdir)/glib.def $(DESTDIR)$(libdir)/glib-2.0.def