diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-03-20 16:04:46 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-03-23 13:54:34 +0000 |
commit | 8599c33e2ac581cd2fcd4e8da36217ebc22b981f (patch) | |
tree | 0cca6d4ebb38e144db2340c8a09f658e9f9b3e3c /src/macdeployqt/macdeployqt/main.cpp | |
parent | 50c54097df34b678a97559b7880f19fffb1b248c (diff) |
macdeployqt: Correctly handle bundling debug Qt libraries with @rpath
After rpath support was introduced, we lost the ability to explicitly
bundle the debug version of the Qt libraries. We now make sure to
always run install_name_tool so that the library dependencies are
updated to the correct version, even in the case of @rpath.
After 27239f4fcfa6f64d in qtbase, we also now directly link to the
debug versions of Qt libraries when building the application in
debug mode, so the code has been taught to handle this case, by
not assuming that the library suffix is determined only by the
-use-debug-libs command line argument.
Task-number: QTBUG-48800
Change-Id: Ia7e058fa4d041fa1a7b8bdedc594750ee1f4cbfd
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/macdeployqt/macdeployqt/main.cpp')
-rw-r--r-- | src/macdeployqt/macdeployqt/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/macdeployqt/macdeployqt/main.cpp b/src/macdeployqt/macdeployqt/main.cpp index 90a5412b2..14507a383 100644 --- a/src/macdeployqt/macdeployqt/main.cpp +++ b/src/macdeployqt/macdeployqt/main.cpp @@ -179,6 +179,9 @@ int main(int argc, char **argv) DeploymentInfo deploymentInfo = deployQtFrameworks(appBundlePath, additionalExecutables, useDebugLibs); + if (deploymentInfo.isDebug) + useDebugLibs = true; + if (deployFramework && deploymentInfo.isFramework) fixupFramework(appBundlePath); |