build: support LTO in depends

No Qt for now.
This commit is contained in:
fanquake committed 2022-06-14 12:08:27 +01:00
1 parent 9e4fbebcc8
commit 094772656d
11 files changed
+55 -3

No files matched your search

+6
View File
@@ -3,6 +3,12 @@ mingw32_CXX := $(host)-g++-posix
endif
mingw32_CFLAGS=-pipe
ifneq ($(LTO),)
mingw32_CFLAGS += -flto
mingw32_LDFLAGS += -flto
endif
mingw32_CXXFLAGS=$(mingw32_CFLAGS)
mingw32_release_CFLAGS=-O2