Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-06-19 03:44:55


On Sunday 18 June 2006 02:43, Tomas Puverle wrote:
> > gcc (GCC) 4.1.1 (OpenPKG-CURRENT)
> > GNU ld version 2.16.1
> >
> > Caleb Epstein
>
> Caleb,
>
> My Solaris gcc is 3.4.5-2 and it looks like the linker is also GNU's:
>
> $ <path-to-gcc>/g++ -print-prog-name=ld
> <path-to-gcc>/ld
> $ <path-to-gcc>/ld -v
> GNU ld version 2.15.92.0.2 20040927
>
> The behaviour you describe is not Solaris specific. Running g++ on
> Linux exactly as you describe produces the same results. I think when
> specifying the -Bstatic/dynamic, you need pass the options to the linker
> instead of the compiler:
>
> -Wl,-Bstatic -lgreet -Wl,-Bdynamic
>
> This seems to work for me on both platforms. -Bstatic/dynamic on Suncc
> do affect the linker but on gcc the -B option is in fact used to tell
> the compiler where its subcomponents live:

So, do we have a command line that works everywhere?

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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