]> git.saurik.com Git - apple/dyld.git/commitdiff
dyld-551.4.tar.gz macos-10136 v551.4
authorApple <opensource@apple.com>
Thu, 30 Aug 2018 17:29:48 +0000 (17:29 +0000)
committerApple <opensource@apple.com>
Thu, 30 Aug 2018 17:29:48 +0000 (17:29 +0000)
src/dyld.cpp

index 2fd37875d220e6c093568bd52cf068d58e14c946..808305e29b2eb37c264ee31945a39b7c235e6ba0 100644 (file)
@@ -5116,6 +5116,19 @@ static bool envVarsMatch(dyld3::launch_cache::Closure mainClosure, const char* e
                }
        }
 
+       // FIXME: dyld3 doesn't support versioned paths so we need to fall back to dyld2 if we have them.
+       // <rdar://problem/37004660> dyld3: support DYLD_VERSIONED_*_PATHs ?
+       if ( sEnv.DYLD_VERSIONED_LIBRARY_PATH != nullptr ) {
+               if ( gLinkContext.verboseWarnings )
+                       dyld::log("dyld: closure %p not used because DYLD_VERSIONED_LIBRARY_PATH used\n", mainClosure.binaryData());
+               return false;
+       }
+       if ( sEnv.DYLD_VERSIONED_FRAMEWORK_PATH != nullptr ) {
+               if ( gLinkContext.verboseWarnings )
+                       dyld::log("dyld: closure %p not used because DYLD_VERSIONED_FRAMEWORK_PATH used\n", mainClosure.binaryData());
+               return false;
+       }
+
        return true;
 }