libtool
[Top][All Lists]
Advanced

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

Re: MS lib program in msys


From: Howard Chu
Subject: Re: MS lib program in msys
Date: Mon, 08 Jan 2007 11:45:21 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061216 Netscape/7.2 (ax) Firefox/1.5 SeaMonkey/1.5a

Ralf Wildenhues 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.

Pretty sure "-" has been valid since at least Win95. Definitely this should be changed.
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...

On MSYS //foo becomes /foo, so it would work. On Cygwin //foo is left alone, so it would not work. Please just change everything to use dashes.

--
 -- Howard Chu
 Chief Architect, Symas Corp.  http://www.symas.com
 Director, Highland Sun        http://highlandsun.com/hyc
 OpenLDAP Core Team            http://www.openldap.org/project/





reply via email to

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