Sweden-Number/tools/winegcc
Huw Davies 9af226c826 winegcc: Add a @loader_path to help the macOS loader find ntdll.so.
On macOS unixlibs that link to ntdll.so currently fail to load.
It appears the macOS loader needs to be able to locate the file
even if the library is already loaded.

This patch changes the LC_ID_DYLIB name of ntdll.so to
"@loader_path/ntdll.so" so that when other unixlibs link against this
they will insert that name into their LC_LOAD_DYLIB entry for
ntdll.so.

While changing only ntdll.so is necessary, for simplicity this patch
changes all unixlibs.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51632
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-23 11:54:16 +02:00
..
Makefile.in
utils.c winegcc: Recognize .obj files as objects. 2021-07-02 16:53:51 +02:00
utils.h winegcc: Link unix libs directly to native libraries. 2021-06-01 17:59:46 +02:00
winegcc.c winegcc: Add a @loader_path to help the macOS loader find ntdll.so. 2021-08-23 11:54:16 +02:00
winegcc.man.in winegcc: Implement -Wl,--out-implib. 2020-11-26 23:25:38 +01:00