[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-users] Whats the latest on libtool and the stub dll librari
From: |
Elizabeth Barham |
Subject: |
Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries? |
Date: |
29 Sep 2002 20:14:42 -0500 |
2002-09-29 Elizabeth Barham <address@hidden>
* modified _LT_AC_LOCK so that, if AC_LIBTOOL_WIN32_DLL is
defined and the host matches:
*-*-cygwin* | *-*-mingw* | *-*-pw32*, and
*-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*
then the check for the correct linker flag to produce a DLL
includes the "-shared" flag, which is tested prior to the
older flags, "-mdll" and "-dll".
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.264
diff -u -3 -p -r1.264 libtool.m4
--- libtool.m4 10 Sep 2002 13:50:06 -0000 1.264
+++ libtool.m4 29 Sep 2002 02:57:35 -0000
@@ -507,11 +507,14 @@ AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL]
case $host/$CC in
*-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
# old mingw systems require "-dll" to link a DLL, while more recent ones
- # require "-mdll"
+ # require "-mdll" (and still newer ones would rather have "-shared")
SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -mdll"
+ CFLAGS="$CFLAGS -shared"
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=-shared],
+ [
+ CFLAGS="$SAVE_CFLAGS -mdll"
+ AC_TRY_LINK([], [],
[lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])])
CFLAGS="$SAVE_CFLAGS" ;;
*-*-cygwin* | *-*-pw32*)
# cygwin systems need to pass --dll to the linker, and not link
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, (continued)
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Elizabeth Barham, 2002/09/26
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Earnie Boyd, 2002/09/26
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Elizabeth Barham, 2002/09/26
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Earnie Boyd, 2002/09/27
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Max Bowsher, 2002/09/27
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Elizabeth Barham, 2002/09/27
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Elizabeth Barham, 2002/09/28
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Earnie Boyd, 2002/09/28
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Elizabeth Barham, 2002/09/28
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Earnie Boyd, 2002/09/29
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?,
Elizabeth Barham <=
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Earnie Boyd, 2002/09/30
- Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Elizabeth Barham, 2002/09/30
Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Elizabeth Barham, 2002/09/24
Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?, Earnie Boyd, 2002/09/24