$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Brook Milligan (brook_at_[hidden])
Date: 2008-07-23 19:13:33
It seems that I need to use the dll-path feature to add an -rpath
directive to the linker when my boost libraries are installed. This
seems to be described (mostly) fairly clearly at
http://www.boost.org/boost-build2/doc/html/bbv2/faq/dll-path.html
What is not clear is where the feature should be invoked.
My attempt to modify Jamroot to add <dll-path> to the boost-install
rule failed in the sense that not rpath information makes it into the
installed libraries. (The rest of this snippet is the original.).
rule boost-install ( libraries * )
{
package.install install
: <dependency>/boost//install-headers $(install-requirements)
: # No binaries
: $(libraries)
: # No headers, it's handled by the dependency
;
install stage : $(libraries) : <location>$(BOOST_STAGE_LOCATE) <dll-path>/path/to/add/via/rpath ;
local c = [ project.current ] ;
local project-module = [ $(c).project-module ] ;
module $(project-module)
{
explicit stage ;
explicit install ;
}
}
So, how is one supposed to invoke the <dll-path> feature in order to
have -rpath added to the linking of libraries during their
installation?
Thanks for your help.
Cheers,
Brook