gcc: fix rpath QA issues
This commit is contained in:
parent
9747417ce7
commit
1ad89f7a35
1 changed files with 13 additions and 5 deletions
18
gcc.spec
18
gcc.spec
|
|
@ -7,7 +7,7 @@ License: GPL
|
||||||
URL: https://gcc.gnu.org
|
URL: https://gcc.gnu.org
|
||||||
Source0: https://mirror.tochlab.net/pub/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.gz
|
Source0: https://mirror.tochlab.net/pub/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc gcc-c++ make gmp-devel mpfr-devel libmpc-devel
|
BuildRequires: gcc gcc-c++ make gmp-devel mpfr-devel libmpc-devel chrpath
|
||||||
Requires: bash
|
Requires: bash
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
@ -23,18 +23,26 @@ CXX=g++
|
||||||
export CFLAGS="-O2 -pipe"
|
export CFLAGS="-O2 -pipe"
|
||||||
export CXXFLAGS="-O2 -pipe"
|
export CXXFLAGS="-O2 -pipe"
|
||||||
export LDFLAGS=""
|
export LDFLAGS=""
|
||||||
./configure --prefix=%{_prefix} --enable-languages=c,c++ --disable-multilib --disable-bootstrap --disable-fixincludes
|
./configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-languages=c,c++ --disable-multilib --disable-bootstrap --disable-fixincludes
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
#find %{buildroot} -type f -executable -name "lib*san*" -print0 | xargs -0 chrpath -d 2>/dev/null || true
|
||||||
|
chrpath -d %{buildroot}/usr/lib64/libhwasan.so.0.0.0
|
||||||
|
chrpath -d %{buildroot}/usr/lib64/libtsan.so.2.0.0
|
||||||
|
chrpath -d %{buildroot}/usr/lib64/libasan.so.8.0.0
|
||||||
|
chrpath -d %{buildroot}/usr/lib64/liblsan.so.0.0.0
|
||||||
|
chrpath -d %{buildroot}/usr/lib64/libubsan.so.1.0.0
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license add-license-file-here
|
%{_bindir}
|
||||||
%doc add-docs-here
|
%{_libdir}
|
||||||
|
%{_datadir}
|
||||||
|
%{_includedir}
|
||||||
|
%{_libexecdir}
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue