File hardcoded-runpath.diff of Package qt-creator

diff --git a/src/qtcreatorplugin.pri b/src/qtcreatorplugin.pri
index 0fe283d..f7e04d0 100644
--- a/src/qtcreatorplugin.pri
+++ b/src/qtcreatorplugin.pri
@@ -127,12 +127,7 @@ macx {
     QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/PlugIns/
     QMAKE_LFLAGS += -Wl,-rpath,@loader_path/../,-rpath,@executable_path/../
 } else:linux-* {
-    #do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR
-    QMAKE_RPATHDIR += \$\$ORIGIN
-    QMAKE_RPATHDIR += \$\$ORIGIN/..
-    IDE_PLUGIN_RPATH = $$join(QMAKE_RPATHDIR, ":")
-    QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${IDE_PLUGIN_RPATH}\'
-    QMAKE_RPATHDIR =
+    QMAKE_RPATHDIR += /usr/$$IDE_LIBRARY_BASENAME/qtcreator
 }
 
 contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
openSUSE Build Service is sponsored by