conditionalizing variables

Tollef Fog Heen tfheen at err.no
Thu Mar 3 13:24:45 PST 2011


]] Stefan Seefeld 

Hi,

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

Oh, ok.  We don't really support passing that in any good fashion, since
command line arguments are rearranged.

-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are


More information about the pkg-config mailing list