mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
windows: Omit -mwin32 GCC option for MSYS/MinGW
Only keep it for Cygwin. Clang doesn't support this option, and it seems only needed for Cygwin since MinGW predefines e.g. the _WIN32 macro anyway. From GCC documentation: -mwin32 This option is available for Cygwin and MinGW targets. It specifies that the typical Microsoft Windows predefined macros are to be set in the pre-processor, but does not influence the choice of runtime library/startup code. References #1192 Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
This commit is contained in:
@@ -128,7 +128,7 @@ wasm32-**)
|
||||
backend=windows
|
||||
platform=windows
|
||||
test "x$enable_shared" = xyes && create_import_lib=yes
|
||||
EXTRA_CFLAGS="-mwin32 -fno-omit-frame-pointer"
|
||||
EXTRA_CFLAGS="-fno-omit-frame-pointer"
|
||||
EXTRA_LDFLAGS="-static-libgcc"
|
||||
;;
|
||||
*)
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11779
|
||||
#define LIBUSB_NANO 11780
|
||||
|
||||
Reference in New Issue
Block a user