Re: Problem with AC_CHECK_FUNC and order of gcc command-line parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux