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

+5
View File
@@ -1,6 +1,11 @@
openbsd_CFLAGS=-pipe
openbsd_CXXFLAGS=$(openbsd_CFLAGS)
ifneq ($(LTO),)
openbsd_CFLAGS += -flto
openbsd_LDFLAGS += -flto
endif
openbsd_release_CFLAGS=-O2
openbsd_release_CXXFLAGS=$(openbsd_release_CFLAGS)