This makes sense now thank you, I’d still rather see the -rpath behind something like UNIX_LDFLAGS then it could be used for other -rpath configuration for the Unix.so libraries
For the build directory runs wouldn’t it be better to alter the wine loader wrapper script.
On Fri, Aug 20, 2021 at 10:02 AM Huw Davies huw@codeweavers.com wrote:
On Fri, Aug 20, 2021 at 09:45:17AM -0400, Dean Greer wrote:
This seems strange to me as I don't get this issue. Could this be
related to a
newer version of Apple cctools/Xcode?, could you give an example of what
you
attempt to run and get an issue with not finding ntdll.so?
This is with the command-line tools from Xcode 9 (32-bit) on Mojave.
Simply running "./wine notepad" with the current git from the build tree produces messages like: 0040:err:rpc:rpcrt4_ncacn_np_handoff Failed to retrieve the computer name, error 2 which is due to the ws2_32.so unixlib being unable to load ntdll.so.
% otool -l dlls/ntdll/ntdll.so [...] cmd LC_ID_DYLIB cmdsize 44 name dlls/ntdll/ntdll.so (offset 24) [...]
% otool -l dlls/ws2_32/ws2_32.so [...] cmd LC_LOAD_DYLIB cmdsize 44 name dlls/ntdll/ntdll.so (offset 24) [...]
Huw.