|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-05-22 12:42:32
Hassan Mehmet wrote:
> Hi
>
> I'm not sure if this is the expected behaviour but should a program that's
> dependent on an installed library relink when the installed library has
> been updated.
>
> To explain I modified "example/libraries"
>
> ./Jamroot
> ---------
> use-project /library-example/foo : util/foo ;
>
> build-project app ;
>
> lib instbar : : <name>bar <search>install ;
>
>
> util/foo/Jamfile
> ----------------
> project
> : usage-requirements <include>include ;
>
> lib bar : bar.cpp ;
>
> install install : bar : <location>../../install ;
>
>
> app/Jamfile
> -----------
> exe app : app.cpp ..//instbar : <include>../util/foo/include ;
'instbar' here refers to:
lib instbar : : <name>bar <search>install ;
which definition say 'ask the linker to search for library bar
in directory install'. However, Boost.Build has no idea how
the linker actually does it -- the linker can find this library
in some "standard" directory, for example. Therefore, it's not
possible to establish dependency on instbar.
Referring to 'util/foo//install' should work better.
- 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