libtool
[Top][All Lists]
Advanced

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

Re: MS lib program in msys


From: Christopher Hulbert
Subject: Re: MS lib program in msys
Date: Mon, 8 Jan 2007 14:11:59 -0500

On 1/8/07, Ralf Wildenhues <address@hidden> wrote:
Hello Christopher,

Thanks for the report.

* Christopher Hulbert wrote on Fri, Jan 05, 2007 at 04:10:18PM CET:
> Libtool uses MS's lib program when not using gcc in windows. On msys
> "lib /out:.libs/liba.lib" is translated to "lib
> C:\msys1.0\OUT;.libs\liba.lib". I'm not sure when lib (or windows)
> started accepting "-" for options, but "lib -out" fixes the problem on
> Windows XP. Would there be any objection to changing that in mainline
> libtool?

I think that when we put that in, there were some older MSVC versions
that did no accept -out.  May be remembering wrongly, though.

What about a libtool autoconf test for lib -out and if that fails use
lib /out? I'm tied up monday and tuesday, but I can try to write that
patch after that to test the concept.

Chris


> address@hidden ~
> $ lib /OUT:.libs/liba.lib
> Microsoft (R) Library Manager Version 7.10.3077
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
> LIB : fatal error LNK1104: cannot open file 'C:\msys1.0\OUT;.libs\liba.lib'

Does
  lib //OUT:.libs/liba.lib

work?  Does anybody know whether doubling the slash can lead to problems
when used under Cygwin (I think they address shares that way)?  Not that
the Cygwin/MSVC combo works with Libtool now...

Nope.

address@hidden ~]$ lib //OUT:.libs/liba.lib
Microsoft (R) Library Manager Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

LIB : warning LNK4044: unrecognized option '//OUT:.libs/liba.lib'; ignored



Thanks,
Ralf





reply via email to

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