diff --git a/platforms/test/platform.mk b/platforms/test/platform.mk index f07c863e698..371ed49d60e 100644 --- a/platforms/test/platform.mk +++ b/platforms/test/platform.mk @@ -11,6 +11,10 @@ HEX = EEP = BIN = +# workaround for undefined reference to weak function under mingw +ifneq ($(findstring mingw, ${SYSTEM_TYPE}),) +LTO_ENABLE := yes +endif COMPILEFLAGS += -funsigned-char ifeq ($(findstring clang, ${GCC_VERSION}),)