Boost logo

Boost-Build :

From: Raoul Gough (raoulgough_at_[hidden])
Date: 2003-01-17 13:49:30


"David Abrahams" <dave_at_[hidden]> wrote in message
news:uvg0nor81.fsf_at_boost-consulting.com...
and news:uznpzorfk.fsf_at_boost-consulting.com...

> "Raoul Gough" <raoulgough_at_[hidden]> writes:
> > "David Abrahams" <dave_at_[hidden]> wrote in message
> > news:uhec8rdoo.fsf_at_boost-consulting.com...
> >>
> >> if $(<[2]) && $(NT) && ( -mno-cygwin in
> > $(gBUILD_PROPERTIES:G=) )
> >> {
> >> gcc-dllwrap $(<) : $(>) ;
> >> }
> >> else
> >> {
> >> # Workaround GCC's lack of command-files and NT's
> > line-length limitation.
> >> if $(NT) {
> >> JAMSHELL on $(<) = % ;
> >> }
> >>
> >> All you need to do is to move the 2nd if statement outside the
first
> >> one.
> >
> > Weird. The jam code you've identified has been there since
2001/12/13,
> > quite a while before I "added" -mno-cygwin support.
>
> Oh, BTW, the code I identified isn't what you thought. I was
> specifically talking about how the setting of JAMSHELL is
specifically
> not done for the mno-cygwin case.

Still, it does suggest that you had done some work on this compiler
mode before I tried it. I wonder if you had it fully working though,
because (AFAIK) proper Cygwin-compiler handling of C++ libraries
with -mno-cygwin is relatively recent (circa October 2002).

According to the following page:
http://www.nanotech.wisc.edu/~khan/software/gnu-win32/mno-cygwin-howto
.txt

it used to be necessary to install the Mingw version of libstdc++
manually (which would probably have been a lot easier than using
STLport, if only I'd known!).

>
> I just ripped out all the special -mno-cygwin "support" from the gcc
> toolset, which might make everything work again.

Sounds good to me.

> What kind of trouble were you having? It looks like you would've
had
> trouble making it work if you were trying to use the gcc toolset.
Was
> gcc-dllwrap *ever* the right way to build dlls under -mno-cygwin?
> Your gcc-no-cygwin toolset doesn't do that!

Don't know. I stole the link action from mingw, and didn't (at the
time) know about this branch of the gcc-tools jamfile.

>
> > It's possible that my Cygwin installation was broken, or that
> > something changed in Cygwin or boost to prevent it working before
I
> > tried it. AFAIK, there was nothing documented at the time, so it's
> > hard to say what was necessary to get it working, unless David can
> > remember anything about it?
>
> Not much.

Well, it looks like there really were some tricks to getting this
working (like installing extra libraries by hand) so maybe I wasn't so
far wrong after all!

Anyway, it should all be much simpler now. I'm still trying to get
around to simplifying the docs - will post again when I've got
something.

Regards,
Raoul Gough.

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

 


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