disable LTO on aarch64

This commit is contained in:
Miroslav Lichvar 2021-01-12 17:33:10 +01:00
parent e79b2e43fb
commit 90d23a8f83

View File

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