libtool
[Top][All Lists]
Advanced

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

Re: linker cant locate a 3rd party lib


From: Jack Nguyen
Subject: Re: linker cant locate a 3rd party lib
Date: Tue, 11 Oct 2005 14:57:34 -0700

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 <address@hidden> 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
>




reply via email to

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