From 90d23a8f83bd4d396d5c5854f9cec514815e6a57 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 12 Jan 2021 17:33:10 +0100 Subject: [PATCH] disable LTO on aarch64 --- gpsd.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gpsd.spec b/gpsd.spec index 6a6efce..7dc1804 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -108,6 +108,11 @@ This package contains various clients using gpsd. sed -i 's|systemctl daemon-reload|true|' SConscript %build +# LTO breaks aarch64 build +%ifarch aarch64 +%define _lto_cflags %{nil} +%endif + export CCFLAGS="%{optflags}" export LINKFLAGS="%{__global_ldflags}"