mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-libs/libgcrypt: filter LTO on riscv
There is a known issue in GCC causing build failures in this package on riscv when LTO is enabled. This commit temporary disables LTO on riscv. Closes: https://bugs.gentoo.org/956605 Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
@@ -89,6 +89,13 @@ src_configure() {
|
||||
# -O0 already. Don't risk it with UB.
|
||||
strip-flags
|
||||
|
||||
# Temporary workaround for a build failure (known gcc issue):
|
||||
#
|
||||
# * https://bugs.gentoo.org/956605
|
||||
# * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110812
|
||||
#
|
||||
use riscv && filter-lto
|
||||
|
||||
# Hardcodes the path to FGREP in libgcrypt-config
|
||||
export ac_cv_path_SED="sed"
|
||||
export ac_cv_path_EGREP="grep -E"
|
||||
|
||||
Reference in New Issue
Block a user