[PATCH 2/2] winegcc: Always use -nostartfiles when building DLLs.

Alexandre Julliard julliard at winehq.org
Thu Aug 1 10:10:11 CDT 2019


Jacek Caban <jacek at codeweavers.com> writes:

> So that simplified DllMainCRTStartup version from winecrt0 is used
> instead of mingw crt.
>
> Signed-off-by: Jacek Caban <jacek at codeweavers.com>
> ---
>  tools/winegcc/winegcc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

This breaks the PE build for me:

../.././../obj-elf64/tools/winegcc/winegcc -o crtdll.dll -B../.././../obj-elf64/tools/winebuild \
  --sysroot=../.. -b i686-w64-mingw32 -Wl,--disable-stdcall-fixup -fasynchronous-unwind-tables \
  -shared ../../../wine/dlls/crtdll/crtdll.spec console.o cpp.o ctype.o data.o dir.o environ.o \
  errno.o except.o except_arm.o except_arm64.o except_i386.o except_x86_64.o exit.o file.o heap.o \
  locale.o lock.o main.o math.o mbcs.o misc.o process.o scanf.o string.o thread.o time.o undname.o \
  wcs.o ../../dlls/advapi32/libadvapi32.delay.a ../../dlls/user32/libuser32.delay.a \
  ../../libs/port/libwine_port.a 
/usr/bin/i686-w64-mingw32-ld: ertr000001.o:(.rdata+0x0): undefined reference to `_pei386_runtime_relocator'
collect2: error: ld returned 1 exit status

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list