While using autoreconf
& automake
& libtool
to build and install my application, I always get warning "libtool: warning: xxx.la has not been installed in /user/local/lib" and "libtool: warning: remember to run 'libtool --finish /usr/local/lib". I have tried many methods, e.g., cleaning the project, and reconfigure with make clean, but still can't get rid of the warning. Here is what I tried:
./configure
make clean
make
make install prefix=~/Software/
Here is part of my configure.ac
that relates to automake
and libtool
.
AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror])
LT_INIT([dlopen])
Why are these warnings emitted, and how do I get rid of them?
libtool
simply does not support install-time relocation viaDESTDIR
or whatever (confirmed by this answer), and will always try to look in the--libdir
specified at configure time, no matter how many times you runautoreconf
. – Moskva