From 3a8f5d09317b553cc9659f9667d5ae93d671dc3b Mon Sep 17 00:00:00 2001 From: juyin Date: Sat, 15 Feb 2025 11:51:34 +0800 Subject: [PATCH] disable lto musl does not support LTO Signed-off-by: zhuyan2015@qq.com (cherry picked from commit 44a50471208232ace9874f292b9e244bdcf8aeb8) --- musl.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/musl.spec b/musl.spec index 8929c9b..5bd978d 100644 --- a/musl.spec +++ b/musl.spec @@ -46,7 +46,7 @@ Name: musl Version: 1.2.4 -Release: 2 +Release: 3 Summary: An implementation of the standard library for Linux-based systems License: MIT @@ -127,6 +127,9 @@ programs and libraries with musl easily. %autosetup %build +# Disable LTO +%define _lto_cflags %{nil} + %ifarch %{power64} # Deal with ABI mismatch on long double between glibc and musl export CC="gcc -mlong-double-64" @@ -185,6 +188,9 @@ ln -sr %{buildroot}%{_libdir}/libc.so %{buildroot}%{_libdir}/libutil.so.1 %{_libdir}/musl-gcc.specs %changelog +* Sat Feb 15 2025 zhuyan - 1.2.4-3 +- disable lto + * Thu Mar 14 2024 peng.zou - 1.2.4-2 - fix compile error about unsupported long double type in ppc64le -- Gitee