2022-01-25 16:35:24 +01:00
|
|
|
ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "command -v $(host)-g++-posix"),)
|
2021-05-28 08:28:14 +02:00
|
|
|
mingw32_CXX := $(host)-g++-posix
|
|
|
|
endif
|
|
|
|
|
2021-08-31 07:34:43 +02:00
|
|
|
mingw32_CFLAGS=-pipe -std=$(C_STANDARD)
|
2021-09-09 08:21:01 +02:00
|
|
|
mingw32_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
2021-11-16 03:01:38 +01:00
|
|
|
|
|
|
|
ifneq ($(LTO),)
|
|
|
|
mingw32_CFLAGS += -flto
|
2021-08-31 07:34:43 +02:00
|
|
|
mingw32_CXXFLAGS += -flto
|
2021-11-16 03:01:38 +01:00
|
|
|
mingw32_LDFLAGS += -flto
|
2022-06-16 11:19:49 +02:00
|
|
|
|
|
|
|
mingw32_AR = $(host_toolchain)gcc-ar
|
|
|
|
mingw32_NM = $(host_toolchain)gcc-nm
|
|
|
|
mingw32_RANLIB = $(host_toolchain)gcc-ranlib
|
2021-11-16 03:01:38 +01:00
|
|
|
endif
|
|
|
|
|
2014-09-23 23:00:31 +02:00
|
|
|
mingw32_release_CFLAGS=-O2
|
|
|
|
mingw32_release_CXXFLAGS=$(mingw32_release_CFLAGS)
|
|
|
|
|
|
|
|
mingw32_debug_CFLAGS=-O1
|
|
|
|
mingw32_debug_CXXFLAGS=$(mingw32_debug_CFLAGS)
|
|
|
|
|
|
|
|
mingw32_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
|
2019-07-09 20:40:45 +02:00
|
|
|
|
2022-02-19 12:00:45 +01:00
|
|
|
mingw32_cmake_system=Windows
|