diff --git a/ShellB3/sb3bin/thosewhohuntelfs.py b/ShellB3/sb3bin/thosewhohuntelfs.py
index 5ba44706de777d50a9e13e42f14899262e851dfe..93e6890167b50897677ed34d8032c39a1c781033 100755
--- a/ShellB3/sb3bin/thosewhohuntelfs.py
+++ b/ShellB3/sb3bin/thosewhohuntelfs.py
@@ -477,7 +477,7 @@ def probe(base,forbiddenlibs=''):
     else:
         darwinNumber=int(platform.release().split('.')[0])
         macname=macVer(darwinToMacVer(darwinNumber))
-    if darwinNumber>=20 and len(usesysroot)<=1:
+    if not elvish and darwinNumber>=20 and len(usesysroot)<=1:
         usesysroot="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
     for path in hunt_elfs(base,elvish=elvish):
         if elvish: