SHA256
1
0
forked from pool/gcc14

- Use %{_target_cpu} to determine host and build.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc14?expand=0&rev=15
This commit is contained in:
2024-02-05 14:29:20 +00:00
committed by Git OBS Bridge
parent 4fa11b56b4
commit 7306dd3b0b
36 changed files with 40 additions and 35 deletions

View File

@@ -153,7 +153,7 @@ Patch61: gcc44-rename-info-files.patch
%define biarch %(case " %{biarch_targets} " in (*" %{TARGET_ARCH} "*) echo 1;; (*) echo 0;; esac)
%endif
%define HOST_ARCH %(echo %{_host_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
%define HOST_ARCH %(echo %{_target_cpu} | sed -e "s/i.86/i586/;s/ppc/powerpc/;s/sparc64.*/sparc64/;s/sparcv.*/sparc/;")
%ifarch ppc
%define GCCDIST powerpc64-suse-linux
%else