|
Boost-Build : |
Subject: Re: [Boost-build] Linking static library against shared library
From: Anthony Foglia (AFoglia_at_[hidden])
Date: 2010-05-18 17:15:30
Sorry, I didn't have time to get to this till today.
Gevorg Voskanyan wrote:
> But I have another suggestion which I somehow managed to forget but it worked for me in a similar situation in the past :-)
> Here it is:
>
> alias lib-real-time
> : [ lib rt ]
> : <threading>single
> ;
>
> alias lib-real-time ;
>
> Hope this one will work, at last.
No it didn't work. With those definitions in the sysdefs.jam, and
utilities defined as thus:
lib utilities
: [ glob src/*.cpp ]
/sysdefs//boost-filesystem
/sysdefs//lib-real-time #/<link>shared
: <include>./include
<link>static
:
: <include>./include
<link>static
;
I still end up linking trying to librt statically get the undefined
reference error.
-- Anthony Foglia Princeton Consultants (609) 987-8787 x233
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