[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Library paths and .la files
From: |
Joe Orton |
Subject: |
Library paths and .la files |
Date: |
Mon, 1 Oct 2001 16:03:53 +0100 |
User-agent: |
Mutt/1.2.5i |
Hi,
If I want to link against my own libfoo.a in preference to any libfoo
installed on the system, I seem to have problems when using libtool 1.4,
if the libfoo installed on the system came with a .la file.
I have in /usr/lib: libfoo.a, libfoo.la
I have in cwd: libfoo.a, and bar.o which I want to link with libfoo.a
libtool 1.3.5 works as I'd expect:
$ libtool --mode=link gcc -o bar bar.o -L. -lfoo
gcc -o bar bar.o -L. -lfoo
But libtool 1.4.2 doesn't:
$ libtool --mode=link gcc -o bar bar.o -L. -lfoo
gcc -o bar bar.o -L/path/to/cwd /usr/lib/libfoo.so
(I can work around this by using 'libfoo.a' explicitly)
Regards,
joe
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Library paths and .la files,
Joe Orton <=