Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-03-27 07:28:09


Hi Andre

Andre, Hentz wrote:
> In any
> case, my intention was to get 'a-static' linked into 'b-shared' by saying:
>
> lib b-shared : main.cpp
> @/a-static/a-static/<link>static
>
> : <link>shared
>
> ;

You should have seen a warning about ignored target, right?

>
> I changed line 53 of gcc.jam from
>
> generators.register-linker gcc.link-dll
>
> : OBJ : SHARED_LIB : <toolset>gcc ;
>
> to
>
> generators.register-linker gcc.link-dll
>
> : STATIC_LIB OBJ : SHARED_LIB : <toolset>gcc ;
>
> in order to get the behavior I expected. Is this a bug in gcc.jam?

I think so. It was reported already but I was reluctant to make the change,
because "what happens if you link statically?" concern. Seems like users
need link static libs into shared ones, so it's better to fix gcc.jam. The cvs
versionIt now reads:

generators.register-linker gcc.link-dll : LIB OBJ : SHARED_LIB : <toolset>gcc
;

(Because on gcc, you can link shared lib into shared lib as well).

Let me know if this works for you.

Thanks,
Volodya

 


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