conditionalizing variables

Stefan Seefeld seefeld at sympatico.ca
Fri Feb 18 08:34:13 PST 2011


Hi Tollef,

thanks for the quick reply !

On 2011-02-18 11:25, Tollef Fog Heen wrote:
> ]] Stefan Seefeld
>
> Hi,
>
> | I'm using pkg-config with a project that provides both, dynamic as
> | well as static libraries. I'm looking for ways to allow users to
> | decide whether to link statically or dynamically. What is the best way
> | to achieve that ?
>
> Use Libs.private and Libs for that.

Could you please elaborate a little how to do that ? I have read the man 
page but don't see how this relates to what I'm trying to do.

To clarify: In my case I have both, .a as well as .so files installed. 
I'm looking for a way to construct link command lines with appropriate 
"-Wl,-Bstatic ... -Wl,-Bdynamic" sections to force static linking. 
Library dependencies are not an issue at all.


Thanks,
         Stefan

-- 

       ...ich hab' noch einen Koffer in Berlin...



More information about the pkg-config mailing list