autoconf
[Top][All Lists]
Advanced

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

Re: Order of arguments when calling the C compiler


From: Akim Demaille
Subject: Re: Order of arguments when calling the C compiler
Date: 24 Jan 2001 16:19:42 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake)

@defvar LDFLAGS
@ovindex LDFLAGS
Stripping (@option{-s}), path (@option{-L}), and any other miscellaneous
options for the linker.  Don't use this variable to pass library names
(@option{-l}) to the linker, use @code{LIBS} instead.  If it is not set
in the environment when @code{configure} runs, the default value is empty.
@code{configure} uses this variable when linking programs to test for
C, C++ and Fortran 77 features.
@end defvar

@defvar LIBS
@ovindex LIBS
@option{-l} options to pass to the linker.  The default value is empty,
but some Autoconf macros may prepend extra libraries to this variable if
those libraries are found and provide necessary functions, see
@ref{Libraries}.  @code{configure} uses this variable when linking
programs to test for C, C++ and Fortran 77 features.
@end defvar



-L should go into LDFLAGS, not LIBS.  Where is the -L coming from?



reply via email to

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