[prev in list] [next in list] [prev in thread] [next in thread] 

List:       boost-build
Subject:    Re: [Boost-build] [EXTERNAL] How to add a system library to the library dependencies for an executab
From:       "Belcourt, Kenneth" <kbelco () sandia ! gov>
Date:       2013-08-08 22:09:15
Message-ID: 09637851-B385-49AB-964E-4F32AA6B73F2 () sandia ! gov
[Download RAW message or body]

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 prov=
ided by a system library (.so).  How should I specify that dependency in th=
e rule?

So many possibilities.  If you're going to add this dependency more than on=
ce, 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 examp=
le)

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<http://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/bo=
ost-build


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; "> <br>
<div>
<div>On Aug 7, 2013, at 1:45 PM, Michael Price wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">
<div>I've got a project in which I have an exe rule that requires a symbols provided \
by a system library (.so). &nbsp;How should I specify that dependency in the \
rule?</div> </div>
</blockquote>
<div><br>
</div>
So many possibilities. &nbsp;If you're going to add this dependency more than once, \
I'd probably</div> <div><br>
</div>
<div>1) create and operating_system directory with a Jamfile</div>
<div>2) add the OS libraries to the operating_system/Jamfile (using X11 as \
example)</div> <div><br>
</div>
<div>
<div>lib X11 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp;</div> <div>&nbsp; : &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div> <div>&nbsp; : \
&lt;target-os&gt;linux &lt;name&gt;X11 \
&lt;search&gt;/usr/X11R6/lib64&amp;&amp;/usr/X11R6/lib &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp;</div> <div>&nbsp; ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div> <div>&nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp;</div> <div>lib X11 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div> <div>&nbsp; : &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp;</div> <div>&nbsp; : &lt;target-os&gt;darwin &lt;name&gt;X11 \
&lt;search&gt;/usr/X11R6/lib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div> <div>&nbsp; ; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp;</div> <div><br>
</div>
</div>
<div>3) reference it in your exe rule as:</div>
<div><br>
</div>
<div>
<div>exe some_exe</div>
<div>&nbsp; :</div>
<div>&nbsp; &nbsp; bunch_of_sources_and_other dependencies</div>
<div>&nbsp; &nbsp; operating_system//X11</div>
<div>&nbsp; ;</div>
<div><br>
</div>
<div>HTH</div>
<div><br>
</div>
</div>
<div>
<blockquote type="cite">
<div dir="ltr">
<div><br>
</div>
<div>I hope that I don't have to make a lib rule for every system library that I want \
to link in...</div> <br clear="all">
<div>
<div dir="ltr">
<div><b style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px">Michael \
Price</b><br style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px">
 <font color="#000000" face="arial, helvetica, sans-serif"><span \
style="font-size:12px">Senior Software Engineer - Infrastructure</span></font><br \
style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px"> <span \
style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px">Perceptive \
Software | from Lexmark</span><br \
style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px"> <br \
style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px"> <span \
style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px">(O)&nbsp;&nbsp;&#43;1 \
913 667 6137</span><br \
style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px"> <a \
href="http://www.perceptivesoftware.com/" \
style="font-family:arial,helvetica,sans-serif;font-size:12px" \
target="_blank">www.perceptivesoftware.com</a><br \
style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px"> <br>
<br style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px">
<span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px">NOTICE: \
If received in error, please destroy the message and notify sender. Sender does not \
waive confidentiality or privilege, and use is prohibited.</span></div> </div>
</div>
</div>
_______________________________________________<br>
Unsubscribe &amp; other changes: <a \
href="http://lists.boost.org/mailman/listinfo.cgi/boost-build"> \
http://lists.boost.org/mailman/listinfo.cgi/boost-build</a><br> </blockquote>
</div>
<br>
</body>
</html>



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

--===============0330980558==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic