Skip to content

Commit

Permalink
qmake|Mac OS X: Tweaked library install name functions
Browse files Browse the repository at this point in the history
If the Qt install directory is found in the linked library name it
will be removed and replaced with the relative "../Frameworks/" path.
  • Loading branch information
skyjake committed Mar 24, 2013
1 parent 3cd9173 commit 9aea7ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doomsday/config.pri
Expand Up @@ -88,14 +88,15 @@ defineTest(doPostLink) {
}

macx {
defineTest(removeQtLibPrefix) {
doPostLink("install_name_tool -change $$[QT_INSTALL_LIBS]/$$2 $$2 $$1")
}
defineTest(fixInstallName) {
# 1: binary file
# 2: library name
# 3: path to Frameworks/
removeQtLibPrefix($$1, $$2)
doPostLink("install_name_tool -change $$2 @executable_path/$$3/Frameworks/$$2 $$1")

# Also try the Qt frameworks directory.
doPostLink("install_name_tool -change $$[QT_INSTALL_LIBS]/$$2 @executable_path/$$3/Frameworks/$$2 $$1")
}
defineTest(fixPluginInstallId) {
# 1: target name
Expand Down

0 comments on commit 9aea7ce

Please sign in to comment.