[libvirt] [PATCH 2/2] Don't mix LDFLAGS and LIBS in the configure script.

Daniel P. Berrange berrange at redhat.com
Fri Dec 18 10:48:28 UTC 2009


On Thu, Dec 17, 2009 at 10:56:25PM +0100, Diego Elio 'Flameeyes' Petten? wrote:
> If you pass libraries in the LDFLAGS variable, and then try AC_CHECK_FUNCS
> to find whether a function is present or not, it'll fail badly when using
> the --as-needed linker flag.
> 
> Instead, pass the libraries through the LIBS library, so that they are
> passed after the conftest.c source file and the tests are done properly.
> ---
>  configure.in |   30 +++++++++++++++---------------
>  1 files changed, 15 insertions(+), 15 deletions(-)

ACK

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list