Skip to content

Commit

Permalink
fix qtcreator rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqiangwang committed Oct 16, 2017
1 parent f5f1ff7 commit 7070690
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/restruct_qtcreator.py
Expand Up @@ -106,7 +106,9 @@ def restruct_linux():
# Fix qt.conf
open(os.path.join(bin_dir, 'qt.conf'), 'w').write('[Paths]\nPrefix = ..\n')
open(os.path.join(libexec_dir, 'qtcreator', 'qt.conf'), 'w').write('[Paths]\nPrefix = ../..\n')
# Fix rpath of executibles under libexec
# Fix rpath of qtcreator and executibles under libexec
cmd = "chrpath -r '$ORIGIN/../lib/qtcreator:$ORIGIN/../lib:' " + os.path.join(bin_dir, 'qtcreator')
os.system(cmd)
for f in os.listdir(os.path.join(libexec_dir, 'qtcreator')):
cmd = "chrpath -r '$ORIGIN/../../lib/qtcreator:$ORIGIN/../../lib:' " + os.path.join(libexec_dir, 'qtcreator', f)
os.system(cmd)
Expand Down

0 comments on commit 7070690

Please sign in to comment.