Use -flto=auto to speed up LTO compilation

Use all the CPU cores, because the default is n=1 🤦

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
2023-05-23 09:48:04 +00:00
parent 3d87e4d45f
commit 52c0a8f1c5
+1 -1
View File
@@ -13,7 +13,7 @@ ARG CURL_VER=8.0.1
ARG OUTPUT=/output
ARG DESTDIR=/prefix
ARG CFLAGS="-O2 -pipe -fstack-protector-strong -D_FORTIFY_SOURCE=2 -flto"
ARG CFLAGS="-O2 -pipe -fstack-protector-strong -D_FORTIFY_SOURCE=2 -flto=auto"
ARG LDFLAGS="$CFLAGS -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~