From bd2d6b64a13a20e73ab5704e1126830be766ceb0 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Mon, 6 Jun 2022 18:32:17 +0200 Subject: [PATCH] better arch detection Signed-off-by: Toshaan Bharvani --- SPECS/sgabios.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SPECS/sgabios.spec b/SPECS/sgabios.spec index 9bebb11..3ce88c0 100644 --- a/SPECS/sgabios.spec +++ b/SPECS/sgabios.spec @@ -10,11 +10,9 @@ License: ASL 2.0 URL: https://github.com/qemu/sgabios Source0: sgabios-%{date}-git%{hash}.tar.xz -%if ppc64 ppc64le aarch64 +%ifarch ppc64 ppc64le aarch64 BuildRequires: binutils-x86_64-linux-gnu gcc-x86_64-linux-gnu Buildarch: noarch -%else -ExclusiveArch: %{ix86} x86_64 %endif BuildRequires: make BuildRequires: gcc @@ -52,7 +50,7 @@ characters for later collection after an operating system boots. unset MAKEFLAGS make \ HOSTCC=gcc \ -%if ppc64 ppc64le aarch64 +%ifarch ppc64 ppc64le aarch64 CC=x86_64-linux-gnu-gcc \ AS=x86_64-linux-gnu-as \ LD=x86_64-linux-gnu-ld \