why "make install" now takes longer and what you can do about it

Alexander Neundorf neundorf at kde.org
Wed Dec 19 21:34:00 GMT 2007


I committed a change to our cmake files, so that now by default also shared 
libraries and plugins are built with the RPATH/RUNPATH pointing to the build 
directory. This way they get the correct libraries when they are used by an 
executable which is executed from the build tree.
When installing these libs, the RPATH has to be modified to the correct RPATH 
for the install location, it may no longer point to the build tree but must 
point to the install dirs.
This means with cmake 2.4.x on ELF systems (Linux, BSD, Solaris) the libraries 
will be linked again with the new RPATH - this unfortunately takes some time, 
but we have correct RPATHs now.

There are two things you can do to avoid this:
-disable the option KDE4_USE_ALWAYS_FULL_RPATH , then you will have the old 
behaviour back
-use cmake cvs from today and also current kdesupport, then the RPATH will be 
changed using the chrpath tool, this avoids the need for linking the libs and 
executables again.


More information about the kde-core-devel mailing list