LDFLAGS is already defined in my configure.ac. In fact i use it to do AC_CHECK_LIB(mkl,some_func). the problem is when i try to test my libfoo.la, it cant find the library it libfoo.la depends on. the console output is $libtool gcc -o test test.c libfoo.la gcc -o test test.c ./.libs/libfoo.a -L /src/dir/ -lmkl_lapack -lm /usr/bin/ld cannot find -lmkl_lapack I want gcc to look into the -L /mkl/lapack/dir, not just /src/dir
On 10/11/05, Ralf Wildenhues <[EMAIL PROTECTED]> wrote: > Hi Jack, > > Your mail would be readable more easily if the mailer wouldn't insert > URLs everywhere -- is there a way to turn that off, together with HTML > encoding maybe? Thanks. > > * Jack Nguyen wrote on Tue, Oct 11, 2005 at 07:41:43PM CEST: > > after > > ./configure and make resulted in libfoo.la <http://libfoo.la>, i tried > > $libtool gcc -o test test.c libfoo.la <http://libfoo.la> > > gcc -o test test.c ./.libs/libfoo.a -L /src/dir/ -lmkl_lapack -lm > > /usr/bin/ld cannot find -lmkl_lapack > > How do you add -L /mkl_lapac/dir in either > > configure.ac<http://configure.ac>or > > Makefile.am <http://Makefile.am>. Obviously LD_FLAGS doesnt do it! > > Try LDFLAGS instead of LD_FLAGS: > > ./configure LDFLAGS=-L/mkl_lapac/dir > make > > Cheers, > Ralf > _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool