https://bugs.winehq.org/show_bug.cgi?id=46993
Bug ID: 46993 Summary: ntoskrnl.exe tests don't compile when using -O0 Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: dark.shadow4@web.de Distribution: ---
Error:
################## /usr/lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld: driver.cross.o: in function `kvprintf': /home/fabian/Programming/Wine/wine/dlls/ntoskrnl.exe/tests/../../../../wine-git/dlls/ntoskrnl.exe/tests/driver.c:64: undefined reference to `strlen' /usr/lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld: driver.cross.o: in function `test_resource': /home/fabian/Programming/Wine/wine/dlls/ntoskrnl.exe/tests/../../../../wine-git/dlls/ntoskrnl.exe/tests/driver.c:946: undefined reference to `memset' ##################
Only happens in -O0, otherwise the compiler seems to optimize away the functions.
Bisected to commit 0022af881e567093621b20d29794503be9400e0b Author: Alexandre Julliard julliard@winehq.org Date: Tue Apr 9 09:39:47 2019 +0200
makefiles: Default to building test resource dlls as PE.
Signed-off-by: Alexandre Julliard julliard@winehq.org