[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: invoke pkg-config with --static
From: |
Robert Collins |
Subject: |
Re: invoke pkg-config with --static |
Date: |
Sun, 17 May 2009 12:26:54 +1000 |
On Sat, 2009-05-16 at 19:04 -0500, 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)?
>
> 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 note, that private libraries are likely needed to like against when
creating a static build; its only shared libraries that the runtime
linker can resolve missing dependencies transitively for you, [and that
only on some platforms like glibc linux].
-Rob
signature.asc
Description: This is a digitally signed message part
- 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 <=
- 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/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