diff --git a/platforms/shared/desktop/makefiles/Makefile.common b/platforms/shared/desktop/makefiles/Makefile.common index a7d815c..a17eb5c 100644 --- a/platforms/shared/desktop/makefiles/Makefile.common +++ b/platforms/shared/desktop/makefiles/Makefile.common @@ -33,8 +33,8 @@ DEBUG ?= 0 ifeq ($(DEBUG), 1) CPPFLAGS +=-DDEBUG -g3 else - CPPFLAGS +=-DNDEBUG -O3 -flto - LDFLAGS += -flto + CPPFLAGS +=-DNDEBUG -O3 -flto=auto + LDFLAGS += -O3 -flto=auto endif SANITIZE ?= 0