|
Re: AC_CHECK_LIB(m, main, LIBM="-lm") broken with C++: msg#00056gnu.libtool.general
On Wed, 5 Feb 2003, Bob Friesenhahn wrote: > > The solution seems to be to either fix autoconf so that it emmits a > different test program for the special case where 'main' is tested for > (which is in fact a valid test!), or to fix libtool.m4 so that it > requests a known symbol from the library being tested. I should mention that libtool is clearly in the wrong with requesting a test for "main" in the library since it is depending on a side-effect and the technique is the result of sloth. Autoconf is also in the wrong since it didn't generate code which actually tests for main in the library. There are indeed libraries which may contain a main routine (e.g. the Perl library) so it is valid to test for 'main' in a library. Bob ====================================== Bob Friesenhahn bfriesen@xxxxxxxxxxxxxxxxxxx http://www.simplesystems.org/users/bfriesen |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | AC_CHECK_LIB(m, main, LIBM="-lm") broken with C++: 00056, Bob Friesenhahn |
|---|---|
| Next by Date: | How to tell libtool to have/work with one of [.lo|.o] file ( if possible ): 00056, Asim Suter |
| Previous by Thread: | AC_CHECK_LIB(m, main, LIBM="-lm") broken with C++i: 00056, Bob Friesenhahn |
| Next by Thread: | Re: AC_CHECK_LIB(m, main, LIBM="-lm") broken with C++: 00056, Albert Chin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |