Boost logo

Boost :

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

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

Thanks for your help.


Boost list run by bdawes at, gregod at, cpdaniel at, john at