From 28cde2571217f51b7a41041b63220fa1a2a31c11 Mon Sep 17 00:00:00 2001 From: liyunfei Date: Mon, 25 Sep 2023 11:11:24 +0800 Subject: [PATCH] add clang compile support (cherry picked from commit 3da1af5fa25e1616916861b9bdf01b09c095b1a4) --- scipy.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scipy.spec b/scipy.spec index b832dda..94c0990 100644 --- a/scipy.spec +++ b/scipy.spec @@ -2,7 +2,7 @@ %global debug_package %{nil} Name: scipy Version: 1.10.1 -Release: 1 +Release: 2 Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering License: Qhull and Apache-2.0 URL: https://www.scipy.org @@ -59,6 +59,7 @@ export SCIPY_USE_PYTHRAN=0 export CFLAGS="$RPM_OPT_FLAGS -lm" export LDFLAGS="$RPM_LD_FLAGS -Wall -shared" pushd %{py3dir} +%global _hardening_clang_cflags %{nil} env FFLAGS="$RPM_OPT_FLAGS -fPIC -w -fallow-argument-mismatch -O2"\ OPENBLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \ %py3_build @@ -100,6 +101,9 @@ echo "%{_libdir}/%{name}" >> $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.c %config(noreplace) /etc/ld.so.conf.d/* %changelog +* Mon Sep 11 2023 liyunfei - 1.10.1-2 +- add clang compile support + * Mon Jul 10 2023 wangkai <13474090681@163.com> - 1.10.1-1 - Update to 1.10.1 -- Gitee