Boost logo

Boost-Build :

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)

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


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<>

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:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at