[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: invoke pkg-config with --static
From: |
Ralf Wildenhues |
Subject: |
Re: invoke pkg-config with --static |
Date: |
Sun, 17 May 2009 09:19:55 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi Lorenzo,
* Lorenzo Bettini wrote on Sun, May 17, 2009 at 09:07:16AM CEST:
> Bob Friesenhahn wrote:
>> On Sat, 16 May 2009, Lorenzo Bettini wrote:
>>
>>> when ./configure is run with --disable-shared, is there a way to
>>> invoke the pkg-config macro with --static (so that it does not select
>>> private libraries in the .pc file)?
You can just use pkg-config --static all the time, unless
( disable_static && ( host_os == Linux || host_os == Solaris ) )
Works wonders! :-)
Once Libtool has been fixed to allow specifying separate dependencies
for static and shared libs (it might have a special API for pkg-config
at that point), this can be revisited.
>> It seems that LT_INIT has been executed, the shell environment
>> variables enable_shared and enable_static are set to 'yes' if shared
>> and/or static libraries will be built. You can test these environment
>> variables to determine the parameter to pass to pkg-config.
>
> but this cannot be done using the pkg-config autoconf macro, can it?
This is a question you might need to ask on the pkg-config list.
Cheers,
Ralf
- invoke pkg-config with --static, Lorenzo Bettini, 2009/05/16
- Re: invoke pkg-config with --static, Bob Friesenhahn, 2009/05/16
- Re: invoke pkg-config with --static, Robert Collins, 2009/05/16
- Re: invoke pkg-config with --static, Lorenzo Bettini, 2009/05/17
- Re: invoke pkg-config with --static,
Ralf Wildenhues <=
- Re: invoke pkg-config with --static, Lorenzo Bettini, 2009/05/17
- Re: invoke pkg-config with --static, Ralf Wildenhues, 2009/05/17
- Re: invoke pkg-config with --static, Lorenzo Bettini, 2009/05/17
- Re: invoke pkg-config with --static, Ralf Wildenhues, 2009/05/19
- Re: invoke pkg-config with --static, Lorenzo Bettini, 2009/05/22
- Re: invoke pkg-config with --static, Ralf Wildenhues, 2009/05/22
- Re: invoke pkg-config with --static, Lorenzo Bettini, 2009/05/23
- Re: invoke pkg-config with --static, Robert Collins, 2009/05/23
- Re: invoke pkg-config with --static, Lorenzo Bettini, 2009/05/23
- Re: invoke pkg-config with --static, Ralf Wildenhues, 2009/05/25