Subject: Re: [Boost-build] [EXTERNAL] How to add a system library to the library dependencies for an executable
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2013-08-08 18:09:15
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)
: <target-os>linux <name>X11 <search>/usr/X11R6/lib64&&/usr/X11R6/lib
: <target-os>darwin <name>X11 <search>/usr/X11R6/lib
3) reference it in your exe rule as:
I hope that I don't have to make a lib rule for every system library that I want to link in...
Senior Software Engineer - Infrastructure
Perceptive Software | from Lexmark
(O) +1 913 667 6137
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
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