|
Boost-Build : |
From: Rene Rivera (grafik666_at_[hidden])
Date: 2003-08-24 11:08:32
[2003-08-24] Vaclav Vesely wrote:
>Well, I have another proposal to simplify using both MinGW and Cygwin on
the
>same machine. There are two new environment variables:
>
>CYGWIN_ROOT_DIRECTORY - is used as default value for GCC_ROOT_DIRECTORY, if
>it's not explicitly set.
>
>BINUTILS_ROOT_DIRECTORY - default value is $(CYGWIN_ROOT_DIRECTORY)/bin
when
>CYGWIN_ROOT_DIRECTORY is set and nothing if not.
>
>
>This stuff handles two problems:
>
>- ar is expected to be in the PATH even when Cygwin is used
I'll fix this problem when I'm back to Linux, but the easier* way to fix it
is to add:
flags gcc .AR : [ GLOB $(PATH) $(GCC_BIN_DIRECTORY) : ar ar.exe ] ;
.AR ?= ar ;
And replace the archive action with:
$(.AR) ru...
* Easier, as in more portable, no configuration by the user, no added
documentation on my part ;-) etc.
>- 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)?
-- 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