Problem installing libtool with make install

I use the following autotool steps to install my pacakges:

./configure make make install prefix=/my/path 

However, I received the following warning about libtool " libtool: warning: do not forget to run" libtool --finish / usr / local / lib "and" libtool: warning: 'lib / my.la' was not installed in '/ usr / local / lib ' when using autotool to install my software package. If I go to the next command, the problem will disappear:

 ./configure make prefix=/my/path make install prefix=/my/path 

It seems that the first method does not correctly replace prefix with libtool. How can I avoid this problem?

+6
source share
1 answer

Among the information that libtool archives a record of the libraries that they describe is the expected installation location. This information is recorded when the library is created. Then you can install it in another place, but libtool will complain. Often the libtool warning is harmless.

To avoid this warning, you must tell libtool the same installation location during build that you do during installation. You present one way to do this in the question, but if you use the standard Autotools build system, it is better to specify the configure installation prefix:

 ./configure --prefix=/my/path make make install 

Alternatively, if you are installing in the staging area, for example, to create an RPM, use DESTDIR during installation. libtool will still warn, but you will avoid spoiling anything else:

 ./configure make make install DESTDIR=/staging/area 
+8
source

All Articles