[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with AC_CHECK_FUNC and order of gcc command-line parameters
From: |
Ralf Wildenhues |
Subject: |
Re: Problem with AC_CHECK_FUNC and order of gcc command-line parameters |
Date: |
Thu, 11 Aug 2005 06:57:22 +0200 |
User-agent: |
Mutt/1.5.9i |
Hi Horst,
* Horst Wagner wrote on Thu, Aug 11, 2005 at 04:10:02AM CEST:
>
> I am having trouble with AC_CHECK_FUNC. It turns out that the order of
> parameters on the gcc commandline configure uses to compile code to check
> for the existence of the function is not proper in my case.
> I could not find any mention of such a problem in newsgroups, so I am
> assuming I am doing something stupid.
> The root problem is that in the compile command the source file name
> (conftest.c) is placed behind the $LDFLAGS. Latter library contains the
> function I am checking for.
LDFLAGS is not for libraries, but only for other linker flags. LIBS is
for libraries (plus their locations, -L...).
See 'info Autoconf "Preset Output Variables"' and "Libraries" for more
info.
Cheers,
Ralf