On Aug 7, 2013, at 1:45 PM, Michael Price wrote:
I've got a project in which I have an exe rule that requires a symbols provided by a system library (.so). How should I specify that dependency in the rule?
So many possibilities. If you're going to add this dependency more than once, I'd probably
1) create and operating_system directory with a Jamfile
2) add the OS libraries to the operating_system/Jamfile (using X11 as example)
lib X11
:
: <target-os>linux <name>X11 <search>/usr/X11R6/lib64&&/usr/X11R6/lib
;
lib X11
:
: <target-os>darwin <name>X11 <search>/usr/X11R6/lib
;
3) reference it in your exe rule as:
exe some_exe
:
bunch_of_sources_and_other dependencies
operating_system//X11
;
HTH
I hope that I don't have to make a lib rule for every system library that I want to link in...
Michael Price
Senior Software Engineer - Infrastructure
Perceptive Software | from Lexmark
(O) +1 913 667 6137
www.perceptivesoftware.com
NOTICE: If received in error, please destroy the message and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost-build