[PATCH 2/4] winegcc: Support -delayload on binutils mingw target.
Emulate MSVC-style delayload by creating required delay importlibs from .def files on demand. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> --- tools/winegcc/utils.c | 12 ++++++++++++ tools/winegcc/utils.h | 1 + tools/winegcc/winegcc.c | 39 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 51 insertions(+), 1 deletion(-)
Jacek Caban <jacek(a)codeweavers.com> writes:
Emulate MSVC-style delayload by creating required delay importlibs from .def files on demand.
That's not going to work for importlibs that contain object files. I also think we should be moving away from .def files, instead of relying more on them. -- Alexandre Julliard julliard(a)winehq.org
On 10/8/19 10:47 AM, Alexandre Julliard wrote:
Jacek Caban <jacek(a)codeweavers.com> writes:
Emulate MSVC-style delayload by creating required delay importlibs from .def files on demand. That's not going to work for importlibs that contain object files.
Yes, that's a limitation, but Wine doesn't seem to need it.
I also think we should be moving away from .def files, instead of relying more on them.
If we want to keep generating delay importlibs for mingw ld, we need to make it conditional on the toolchain, like: https://www.winehq.org/pipermail/wine-devel/2019-August/148966.html Would you prefer something like that? Thanks, Jacek
participants (2)
-
Alexandre Julliard -
Jacek Caban