On Sat Dec 3 04:33:26 2022 +0000, Huw Davies wrote:
commit 588e5554252 is preventing a 32-bit build on Mojave from finding the 32-bit libfreetype.6.dylib which I have in a non-standard location. I suspect that DYLD_FALLBACK_LIBRARY_PATH is somehow being lost.
Hmm, and this worked correctly before? Are you running from the build directory? I didn't realize this before, but any DYLD_ environment variables will be stripped when running from the build directory, because `./wine` or `./wine64` is a shell script, and system binaries (including `/bin/sh`) ignore/strip `DYLD_` env vars. But if you edit `wine`/`wine64` and set/export `DYLD_FALLBACK_LIBRARY_PATH` inside the script, it works.
Or, if you install Wine and then run it from there, `wine`/`wine64` is a binary, so `DYLD_FALLBACK_LIBRARY_PATH` works correctly.
I did some tests with the preloader and couldn't find any cases where it loses or mishandles the environment variables.