conditionalizing variables

Stefan Seefeld seefeld at sympatico.ca
Thu Mar 3 16:19:47 PST 2011


On 2011-03-03 16:24, Tollef Fog Heen wrote:
> ]] 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.

Right, understood. Is there any possibility that pkg-config becomes a 
little more clever about this ? For example, if it understood the 
content of those variables, it could avoid rearranging certain portions 
of the command-line.

Thanks,
     Stefan


-- 

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



More information about the pkg-config mailing list