build: support LTO in depends

No Qt for now.
This commit is contained in:
fanquake
2021-11-16 10:01:38 +08:00
parent 9e4fbebcc8
commit 094772656d
11 changed files with 55 additions and 3 deletions

View File

@@ -78,6 +78,10 @@ if test "@host_os@" = darwin; then
BREW=no
fi
if test -z "$enable_lto" && test -n "@lto@"; then
enable_lto=yes
fi
PKG_CONFIG="$(which pkg-config) --static"
# These two need to remain exported because pkg-config does not see them