Dominique Leuenberger 2021-07-29 19:31:06 +00:00 committed by Git OBS Bridge
commit bab7d3776d
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 26 08:20:32 UTC 2021 - Andreas Schwab <schwab@suse.de>
- Use RISCV64_GENERIC for riscv64
- Add -ffat-lto-objects to get proper static archives
-------------------------------------------------------------------
Thu Jul 22 08:11:06 UTC 2021 - Ismail Dönmez <ismail@i10z.com>

View File

@ -295,6 +295,9 @@ cp %{SOURCE2} .
%endif
%build
%if "%{?_lto_cflags}" != ""
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%endif
# disable lto for ppc64le, boo#1181733
%ifarch ppc64le
@ -327,6 +330,9 @@ cp %{SOURCE2} .
%ifarch ppc64
%global openblas_target %openblas_target TARGET=POWER8
%endif
%ifarch riscv64
%global openblas_target %openblas_target TARGET=RISCV64_GENERIC
%endif
# force -mvsx for ppc64 to avoid build failure:
# ../kernel/power/sasum_microk_power8.c:41:3: error: '__vector' undeclared (first use in this function); did you mean '__cpow'?
# TODO why is it required ? (and not for ppc64le)