https://bugs.winehq.org/show_bug.cgi?id=49588
--- Comment #4 from RafaĆ Mikrut mikrutrafal@protonmail.com --- Configuring Wine with commands like ``` ./configure --enable-win64 CFLAGS="-Og -fsanitize=undefined" LDFLAGS="-fsanitize=undefined" ./configure --enable-win64 ```
works fine, but adding only -fsanitize=address to compiler flags broke generating makefile ``` ./configure --enable-win64 CFLAGS="-fsanitize=address" ``` It also doesn't work with GCC 9.3
There is another bug with compiling Wine with Undefined sanitizers support: ``` ./configure --enable-win64 CFLAGS="-Og -fsanitize=undefined" LDFLAGS="-fsanitize=undefined" make -j8 ``` make command cause this errors ``` /usr/bin/ld: preloader.o: in function `map_so_lib': preloader.c:(.text+0x28bc): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: preloader.c:(.text+0x2aa5): undefined reference to `__ubsan_handle_type_mismatch_v1' /usr/bin/ld: preloader.c:(.text+0x2ab9): undefined reference to `__ubsan_handle_pointer_overflow' /usr/bin/ld: preloader.c:(.text+0x2acd): undefined reference to `__ubsan_handle_type_mismatch_v1' /usr/bin/ld: preloader.c:(.text+0x2ae1): undefined reference to `__ubsan_handle_type_mismatch_v1' ```