fix tool invocation for -prefix + -framework builds on macx
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Mon, 29 Oct 2012 10:18:06 +0000 (11:18 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 29 Oct 2012 21:21:32 +0000 (22:21 +0100)
set DYLD_FRAMEWORK_PATH instead of DYLD_LIBRARY_PATH

Change-Id: I9849f12063b8c7a45d040c087f4611c3a48180b8
Reviewed-by: Johanna Äijälä <johanna.aijala@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
mkspecs/features/qt_functions.prf

index f8922e6..ce32028 100644 (file)
@@ -215,14 +215,18 @@ defineTest(qtAddTargetEnv) {
             for(rpath, QT.$${dep}.rpath_link): \
                 deppath += $$shell_path($$rpath)
         }
-        equals(QMAKE_HOST.os, Windows): \
+        equals(QMAKE_HOST.os, Windows) {
             deppath.name = PATH
-        else:contains(QMAKE_HOST.os, Linux|FreeBSD): \
+        } else:contains(QMAKE_HOST.os, Linux|FreeBSD) {
             deppath.name = LD_LIBRARY_PATH
-        else:equals(QMAKE_HOST.os, Darwin): \
-            deppath.name = DYLD_LIBRARY_PATH
-        else: \
+        } else:equals(QMAKE_HOST.os, Darwin) {
+            contains(QT_CONFIG, qt_framework): \
+                deppath.name = DYLD_FRAMEWORK_PATH
+            else: \
+                deppath.name = DYLD_LIBRARY_PATH
+        } else {
             error("Operating system not supported.")
+        }
         deppath.value = $$unique(deppath)
         deppath.CONFIG = prepend