[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Order of arguments when calling the C compiler
From: |
Alexandre Oliva |
Subject: |
Re: Order of arguments when calling the C compiler |
Date: |
24 Jan 2001 13:40:15 -0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake) |
On Jan 24, 2001, Stephane Bortzmeyer <address@hidden> wrote:
> Because -L was put too late.
It should probably be in LDFLAGS, not LIBS.
> Indeed, the fault seems to be in acgeneral.m4, when defining AC_CHECK_LIB:
> LIBS="-l$1 $5 $LIBS"
> IMHO, it should be:
> LIBS="$LIBS -l$1 $5"
Nope. First, you look for libraries that don't depend on any others.
Then, you test for libraries that depend on them. Order matters, and
autoconf is doing The Right Thing (TM).
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer address@hidden, redhat.com}
CS PhD student at IC-Unicamp address@hidden, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me