[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc..."
From: |
Tor Lillqvist |
Subject: |
Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc..." |
Date: |
Tue, 17 Sep 2002 01:36:02 +0300 |
While on the subject of libtool on Win32, I thought I would post my
wishlist (libtool patches I use):
(This is from a rather old cvs diff output, I don't know how well it
applies to current CVS. But you get the idea.)
Firstly, I think it would be a good idea to always use
-Wl,--enable-auto-image-base . Should make DLL loading a (tiny) bit
faster, with no ill effects AFAIK.
Index: libtool.m4
===================================================================
RCS file: /cvs/libtool/libtool.m4,v
retrieving revision 1.253
diff -u -2 -r1.253 libtool.m4
--- libtool.m4 24 Apr 2002 14:39:31 -0000 1.253
+++ libtool.m4 26 Apr 2002 09:20:48 -0000
@@ -488,5 +488,5 @@
CFLAGS="$CFLAGS -mdll"
AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
- [AC_TRY_LINK([], [],
[lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
+ [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch='-mdll
-Wl,--enable-auto-image-base'],[lt_cv_cc_dll_switch=-dll])])
CFLAGS="$SAVE_CFLAGS" ;;
*-*-cygwin* | *-*-pw32*)
Secondly, never relink on Win32 platforms. Why would it ever be
necessary? Or am I confused?
Index: ltmain.in
===================================================================
RCS file: /cvs/libtool/ltmain.in,v
retrieving revision 1.293
diff -u -2 -r1.293 ltmain.in
--- ltmain.in 14 Apr 2002 21:34:04 -0000 1.293
+++ ltmain.in 26 Apr 2002 09:20:54 -0000
@@ -2079,8 +2079,15 @@
if test -n "$library_names" &&
{ test "$prefer_static_libs" = no || test -z "$old_library"; }; then
- if test "$installed" = no; then
- notinst_deplibs="$notinst_deplibs $lib"
- need_relink=yes
- fi
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+ # I don't see the point of relinking Win32 DLLs?
+ ;;
+ *)
+ if test "$installed" = no; then
+ notinst_deplibs="$notinst_deplibs $lib"
+ need_relink=yes
+ fi
+ ;;
+ esac
# This is a shared library
if test "$linkmode" = lib &&
- Re: [Mingw-users] Re: libbfd, libtool & Win32, (continued)
- "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Max Bowsher, 2002/09/16
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Robert Boehne, 2002/09/16
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Max Bowsher, 2002/09/16
- Re: [Mingw-users] Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Max Bowsher, 2002/09/16
- Re: [Mingw-users] Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Robert Collins, 2002/09/17
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Bob Friesenhahn, 2002/09/16
- Re: [Mingw-users] Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLibetc...", Earnie Boyd, 2002/09/16
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Guido Draheim, 2002/09/16
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...",
Tor Lillqvist <=
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Guido Draheim, 2002/09/16
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Tor Lillqvist, 2002/09/17
- Re: [Mingw-users] Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Earnie Boyd, 2002/09/16
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Guido Draheim, 2002/09/16
- Re: [Mingw-users] Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLibetc...", Earnie Boyd, 2002/09/16
- Re: [Mingw-users] Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLibetc...", Guido Draheim, 2002/09/16
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Max Bowsher, 2002/09/17
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", David Olofson, 2002/09/17
- Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLib etc...", Guido Draheim, 2002/09/17
- Re: [Mingw-users] Re: "Re: libbfd, libtool & Win32" and "Re: Building a MinGW GLibetc...", Earnie Boyd, 2002/09/17