|
Boost-Build : |
From: Rene Rivera (grafik666_at_[hidden])
Date: 2003-08-27 11:55:38
[2003-08-27] Vaclav Vesely wrote:
>Rene Rivera
>> [2003-08-24] Vaclav Vesely wrote:
>>
>> >- MinGW tools doesn't work properly (linker tries to use Cygwin
>libraries),
>> >when GCC_ROOT_DIRECTORY points at Cygwin
>>
>> For this you're going to have to show me how this is happening to you.
>> mingw-tools.jam uses it's own has its own archive, link, cc, and c++
>> actions. How can it be using the cygwin libraries? Could you show the
>output
>> of the commands called (-n option)?
>
>Did you find out something from the output?
Neat coincidence :) I was looking at it right now.
>It seems to be, that the reason is that mingw-Link-action uses STDLIBPATH.
>mingw tools extends gcc tools and gcc tools use GCC_ROOT_DIRECTORY to set
>STDLIBPATH. And because of I have GCC_ROOT_DIRECTORY set to point at Cygwin
>instalation, mingw-Link-action uses Cygwin library path.
>
>I think, that using CYGWIN_ROOT_DIRECTORY instead of GCC_ROOT_DIRECTORY
>would be consistent with MINGW_ROOT_DIRECTORY. But it's probably sufficiant
>to adjust mingw-tools to count with the possibility, that there are Cygwin
>tools installed on the same machine too.
It's not that easy, the real problem turns out to be that the mingw tools
are extending the gcc-tools without setting/reflecting all the needed
*_DIRECTORY. Which causes it to get duplicate values for some of them and
when the GCC_ROOT_DIRECTORY is set the duplicates can be bogus.
I'm fixing it now by cleaning up the toolset. And like many programming
tasks fixing it makes for it having less code than before :-) Gota love how
things work out.
-- grafik - Don't Assume Anything
-- rrivera (at) acm.org - grafik (at) redshift-software.com
-- 102708583 (at) icq
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk