Add workaround for undefined reference to weak function under mingw (#26167)

This commit is contained in:
Joel Challis 2026-04-30 23:56:35 +01:00 • committed by GitHub
commit e2c7d621a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}),)