From 582942d04cf5838f4919bf54ef3aac0e631b069e Mon Sep 17 00:00:00 2001 From: Mingcong Bai Date: Thu, 22 Apr 2021 16:41:35 -0700 Subject: [PATCH] arch/loongson3: limit LTO quirk to GCC --- arch/loongson3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/loongson3.sh b/arch/loongson3.sh index fde82e69..df319bf5 100644 --- a/arch/loongson3.sh +++ b/arch/loongson3.sh @@ -3,5 +3,5 @@ ##@copyright GPL-2.0+ CFLAGS_GCC_ARCH='-mabi=64 -march=gs464 -mtune=gs464e -mfix-loongson3-llsc -mxgot -flto-partition=none ' CFLAGS_CLANG_ARCH='-mabi=64 -march=mips64r2 -mtune=mips64r2 ' -LDFLAGS_COMMON_OPTI_LTO="${LDFLAGS_COMMON_OPTI_LTO} -mxgot -flto-partition=none " +LDFLAGS_GCC_OPTI_LTO="${LDFLAGS_COMMON_OPTI_LTO} -mxgot -flto-partition=none " RUSTFLAGS_COMMON_OPTI_LTO="${RUSTFLAGS_COMMON_OPTI_LTO} -Clink-arg=-Wl,-build-id=sha1 -Clink-arg=-Wl,-z,notext "