[CMake] another RPATH problem

Alexander Neundorf a.neundorf-work at gmx.net
Sat Jun 10 03:33:34 EDT 2006


Hi,

although cmake now supports RPATH very flexible, we still have a problem.
The install RPATH has to be constructed manually. In KDE we set it to the Qt libdir, the KDE libdir and the install libdir.
Now the problem is, what to do if the app links to a library which has been found (e.g. /usr/lib/dbus/lib/libdbus-1.so ) but which isn't in the LD_LIBRARY_PATH ?
Requiring every developer to adjust the INSTALL_RPATH manually for every lib he links to doesn't seem like a viable solution.
Another option is just to require that (DY)LD_LIBRARY_PATH is set up correctly.

But I see a third option which sounds quite compelling to me.
When linking and when relinking during install, cmake adds all required link dirs using -L ... to the command line.
Shouldn't it be possible to use the same set of link dirs also for the RPATH ?
This would solve all our problems I think.

Bye
Alex

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the CMake mailing list