autoconf
[Top][All Lists]
Advanced

[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: Stepan Kasal
Subject: Re: Problem with AC_CHECK_FUNC and order of gcc command-line parameters
Date: Thu, 11 Aug 2005 13:57:31 +0200
User-agent: Mutt/1.4.1i

Hello,

On Wed, Aug 10, 2005 at 10:10:02PM -0400, Horst Wagner wrote:
> (conftest.c) is placed behind the $LDFLAGS. Latter library contains the
> function I am checking for.
> If I reorder the commandline such that -lgd comes after conftest.c (the way
> it ought to be according to the gcc documentation) then the code compiles

this is why the autoconf documentation says that -l options should go to
LIBS.  LDFLAGS contains all other flags.

See
        info '(autoconf)Preset Output Variables'

Happy hacking,
        Stepan Kasal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]