[PATCH 2/2] winegcc: Always use -nostartfiles when building DLLs.
Alexandre Julliard
julliard at winehq.org
Mon Aug 5 04:04:23 CDT 2019
Jacek Caban <jacek at codeweavers.com> writes:
> Do you have a plan for converting msvcrt.dll to PE file in regular
> Wine build? Right now the cross build depends on mingw-w64 providing
> implementation for a number of functions (some of which reference
> atexit). It might work for some cases, but it's be problematic in
> general. A number of functions are provided by mingw crt due to
> compatibility with older msvcrt.dll versions. We could theoretically
> use subset of them that are complete enough. However, others are
> provided as an alternative for msvcrt.dll where msvcrt.dll is not
> standard compliant. Those don't really fit Wine requirements. And the
> whole thing would require a lot of assumptions about mingw crt.
>
> I guess we'd better provide implementation of many more functions
> ourselves. If that's the case, _pei386_runtime_relocator will not be a
> problem at some point.
msvcrt should be converted to PE, so yes, we'll have to implement many
more functions ourselves.
I think the goal should be to build with both -nodefaultlibs and
-nostartfiles. I'm not sure it makes sense to try to use one option
without the other.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list