From 34babd2ffc8617ba8e26fcb52bb11f32b94d8e28 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 29 Dec 2017 16:52:35 +0100 Subject: Don't set the LD_LIBRARY_PATH in prefix.sh Summary: We already have rpaths anyway and it breaks running applications from within the build directory: https://community.kde.org/Guidelines_and_HOWTOs/Making_apps_run_uninstalled Reviewers: #frameworks, dfaure, ngraham, graesslin Reviewed By: ngraham, graesslin Subscribers: graesslin, ngraham, #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D9550 --- kde-modules/prefix.sh.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kde-modules/prefix.sh.cmake b/kde-modules/prefix.sh.cmake index bddebeb5..4cc6fd97 100644 --- a/kde-modules/prefix.sh.cmake +++ b/kde-modules/prefix.sh.cmake @@ -1,5 +1,7 @@ export PATH=@KDE_INSTALL_FULL_BINDIR@:$PATH -export LD_LIBRARY_PATH=@KDE_INSTALL_FULL_LIBDIR@:$LD_LIBRARY_PATH + +# LD_LIBRARY_PATH only needed if you are building without rpath +# export LD_LIBRARY_PATH=@KDE_INSTALL_FULL_LIBDIR@:$LD_LIBRARY_PATH export XDG_DATA_DIRS=@KDE_INSTALL_FULL_DATADIR@:${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/} export XDG_CONFIG_DIRS=@KDE_INSTALL_FULL_CONFDIR@:${XDG_CONFIG_DIRS:-/etc/xdg} -- cgit v1.2.1