Remove Rust LTO argument

Forcing LTO on Rust compilation causes build failures with some
packages.
This commit is contained in:
inference 2023-10-14 19:42:41 +01:00
parent 04f34e209c
commit c55607bc44
Signed by: inference
SSH Key Fingerprint: SHA256:FtEVfx1CmTKMy40VwZvF4k+3TC+QhCWy+EmPRg50Nnc

View File

@ -4,7 +4,7 @@
# Copyright 2022 Jake Winters
# SPDX-License-Identifier: BSD-3-Clause
# Version: 16.0.0-alpha.5+49
# Version: 16.0.0-alpha.6+50
# System
@ -41,7 +41,7 @@ LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro"
## Compiler flags
CFLAGS="-flto=thin -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
CXXFLAGS="-flto=thin -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}"
RUSTFLAGS="-C debuginfo=0 -C embed-bitcode=y -C lto -C opt-level=2 -C target-cpu=znver3"
RUSTFLAGS="-C debuginfo=0 -C embed-bitcode=y -C opt-level=2 -C target-cpu=znver3"
## Linker flags
LDFLAGS="-Wl,-O2 -Wl,--strip-all -Wl,--thinlto-jobs=4 ${LD_SEC}"
## USE flags