Remove RPATH
This commit is contained in:
parent
0519e7e6e9
commit
58dfc1cac6
@ -30,11 +30,6 @@
|
||||
%global blaslib openblas
|
||||
%endif
|
||||
|
||||
# Workaround until we find a way to fix the incorrect RPATH
|
||||
# (since it points to /builddir/build/BUILD/ it is not a security issue)
|
||||
# https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild
|
||||
%global __brp_check_rpaths %{nil}
|
||||
|
||||
Name: suitesparse
|
||||
Version: 5.10.1
|
||||
Release: 1%{?dist}
|
||||
@ -47,6 +42,7 @@ Source0: https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: patchelf
|
||||
|
||||
BuildRequires: metis-devel
|
||||
BuildRequires: %{blaslib}-devel
|
||||
@ -375,6 +371,9 @@ do
|
||||
popd
|
||||
done
|
||||
|
||||
# Remove invalid RPATH pointing to BUILDROOT
|
||||
# Required after https://fedoraproject.org/wiki/Changes/Broken_RPATH_will_fail_rpmbuild
|
||||
patchelf --remove-rpath ${RPM_BUILD_ROOT}%{_libdir}/*.so*
|
||||
|
||||
%check
|
||||
export AUTOCC=no
|
||||
|
||||
Loading…
Reference in New Issue
Block a user