libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-users] Whats the latest on libtool and the stub dll librarie


From: Earnie Boyd
Subject: Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?
Date: Sun, 29 Sep 2002 07:21:15 -0400

Elizabeth Barham wrote:
> 
> Here goes again:
> 
> 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

Much better, thanks.

> Index: ChangeLog
> ===================================================================
> RCS file: /cvsroot/libtool/libtool/ChangeLog,v
> retrieving revision 1.1133
> diff -u -3 -p -r1.1133 ChangeLog
> --- ChangeLog   25 Sep 2002 04:26:19 -0000      1.1133
> +++ ChangeLog   29 Sep 2002 02:57:38 -0000
> @@ -1,3 +1,8 @@
> +2002-09-27  Elizabeth Barham <address@hidden>
> +
> +       * Added check for -shared linker flag when using
> +       AC_LIBTOOL_WIN32_DLL for a mingw* host.
> +
>  2002-09-24  Robert Boehne  <address@hidden>
> 
>         * ltmain.in: Fixed a few spelling errors.
> 

Sorry, this isn't a proper ChangeLog entry.  The ChangeLog entry isn't a
diff of the ChangeLog.  See http://www.gnu.org/prep/standards_42.html
for the standards of a ChangeLog entry.

Earnie.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]