50 lines
1.2 KiB
RPMSpec
50 lines
1.2 KiB
RPMSpec
Name: gcc
|
|
Version: 15.2.0
|
|
Release: 1%{?dist}
|
|
Summary: The GNU Compiler Collection
|
|
|
|
License: GPL
|
|
URL: https://gcc.gnu.org
|
|
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 patchelf
|
|
Requires: bash
|
|
|
|
%description
|
|
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
|
|
%build
|
|
CC=gcc
|
|
CXX=g++
|
|
export CFLAGS="-O2 -pipe"
|
|
export CXXFLAGS="-O2 -pipe"
|
|
export LDFLAGS=""
|
|
./configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-languages=c,c++ --disable-multilib --disable-bootstrap --disable-fixincludes
|
|
%make_build
|
|
|
|
|
|
%install
|
|
%make_install
|
|
#find %{buildroot} -type f -executable -name "lib*san*" -print0 | xargs -0 chrpath -d 2>/dev/null || true
|
|
patchelf --remove-rpath %{buildroot}/usr/lib64/libhwasan.so.0.0.0
|
|
patchelf --remove-rpath %{buildroot}/usr/lib64/libtsan.so.2.0.0
|
|
patchelf --remove-rpath %{buildroot}/usr/lib64/libasan.so.8.0.0
|
|
patchelf --remove-rpath %{buildroot}/usr/lib64/liblsan.so.0.0.0
|
|
patchelf --remove-rpath %{buildroot}/usr/lib64/libubsan.so.1.0.0
|
|
|
|
|
|
%files
|
|
%{_bindir}
|
|
%{_libdir}
|
|
%{_datadir}
|
|
%{_includedir}
|
|
%{_libexecdir}
|
|
|
|
|
|
%changelog
|
|
* Fri Oct 17 2025 Dmitrii Tochanskii <tochansky@tochlab.ru>
|
|
-
|