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

List:       freedesktop-pkg-config
Subject:    Re: conditionalizing variables
From:       Stefan Seefeld <seefeld () sympatico ! ca>
Date:       2011-02-18 16:34:13
Message-ID: 4D5E9F85.4020602 () sympatico ! ca
[Download RAW message or body]

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

_______________________________________________
pkg-config mailing list
pkg-config@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pkg-config
[prev in list] [next in list] [prev in thread] [next in thread] 

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