Fix for missing RPATH
David Faure
faure at kde.org
Sat Jan 8 13:55:29 GMT 2005
KDE_RPATH contains the kde+qt+x directories but not the "prefix of this module".
When I compile kdepim head into its own prefix, readelf shows that RPATH points to
kdelibs-prefix before kdepim-prefix, every time a binary links to a kdelibs library before
a kdepim library. Of course it can be fixed by fixing the order of the link line in every
Makefile.am ... but a less fragile solution would be to do this at the right place IMHO.
--- acinclude.m4.in 7 Jan 2005 22:56:19 -0000 2.494
+++ acinclude.m4.in 8 Jan 2005 13:46:44 -0000
@@ -3300,7 +3300,11 @@ AC_ARG_ENABLE(rpath,
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
- KDE_RPATH="-R \$(kde_libraries)"
+ KDE_RPATH="-R \$(libdir)"
+
+ if test "$kde_libraries" != "$libdir"; then
+ KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
+ fi
if test -n "$qt_libraries"; then
KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list