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}"