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 libraries


From: Elizabeth Barham
Subject: Re: [Mingw-users] Whats the latest on libtool and the stub dll libraries?
Date: 28 Sep 2002 20:53:24 -0500

Earnie Boyd <address@hidden> writes:

> Ok, submit a proper patch against the CVS source to address@hidden for
> proper credit for the fix.

Okay, I am satisfied with this and submit this patch for peer review.

SYNOPSIS:

Adds a linker flag check for "-shared" before those that are all ready
defined when building a win32 dll (using the AC_LIBTOOL_WIN32_DLL in
configure.ac) for a mingw* host.

Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.264
diff -r1.264 libtool.m4
510c510
<     # require "-mdll"
---
>     # require "-mdll" (and still newer ones would rather have "-shared")
512c512
<     CFLAGS="$CFLAGS -mdll"
---
>     CFLAGS="$CFLAGS -shared"
514c514,517
<       [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])])])

Regards,

Elizabeth




reply via email to

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