[PATCH 2/2] winewrapper: Add dlls/ntdll to the library path so macOS can find ntdll.so.

Huw Davies huw at codeweavers.com
Mon Aug 23 01:30:11 CDT 2021


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 tools/winewrapper | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winewrapper b/tools/winewrapper
index 2206d7c4446..93d44bcd06c 100755
--- a/tools/winewrapper
+++ b/tools/winewrapper
@@ -69,9 +69,9 @@ if [ "`uname -s`" = "Darwin" ]
 then
   if [ -n "$DYLD_LIBRARY_PATH" ]
   then
-    DYLD_LIBRARY_PATH="$topdir/libs/wine:$DYLD_LIBRARY_PATH"
+    DYLD_LIBRARY_PATH="$topdir/libs/wine:$topdir/dlls/ntdll:$DYLD_LIBRARY_PATH"
   else
-    DYLD_LIBRARY_PATH="$topdir/libs/wine"
+    DYLD_LIBRARY_PATH="$topdir/libs/wine:$topdir/dlls/ntdll"
   fi
   export DYLD_LIBRARY_PATH
 else
-- 
2.23.0




More information about the wine-devel mailing list