2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-12-20 11:34:36 +00:00

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:
Joe Groocock 2023-05-23 09:39:01 +00:00
parent 3d87e4d45f
commit 52c0a8f1c5
Signed by: frebib
GPG Key ID: A5571FCDC53ADDE6

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"
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~