Compare commits
2 Commits
14.2.1+202
...
15.1.1+202
Author | SHA1 | Date | |
---|---|---|---|
713d63ec73 | |||
50ef3ae5d2 |
53
gcc.spec
53
gcc.spec
@ -37,27 +37,20 @@
|
||||
%define majver %(echo %version | cut -d. -f 1-2)
|
||||
|
||||
Name: gcc
|
||||
Version: 14.2.1+20240909git.3951efed
|
||||
Release: 2mamba
|
||||
Version: 15.1.1+20250606git.f59d33ad
|
||||
Release: 1mamba
|
||||
Summary: GNU Compiler Collection (C, C++, Fortran, Go, Ada)
|
||||
Group: Applications/Development
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://gcc.gnu.org/
|
||||
#Source: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.bz2
|
||||
Source: https://sourceware.org/git/gcc.git/releases%2Fgcc-14@%{gittag}/gcc-%{version}.tar.bz2
|
||||
Source: https://gcc.gnu.org/git/gcc.git/releases%2Fgcc-15@%{gittag}/gcc-%{version}.tar.bz2
|
||||
#Source: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz
|
||||
Patch0: gcc-10.1.0-arm-provide-futex-atomic-functions.patch
|
||||
Patch1: gcc-14.2.1+20240909git.3951efed-ada-repro.patch
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libgmp-devel
|
||||
BuildRequires: libisl-devel
|
||||
BuildRequires: libmpc-devel
|
||||
BuildRequires: libmpfr-devel
|
||||
BuildRequires: libz-devel
|
||||
BuildRequires: libzstd-devel
|
||||
## AUTOBUILDREQ-END
|
||||
%if "%{?cross_target_cpu}" == ""
|
||||
BuildRequires: binutils
|
||||
@ -617,18 +610,12 @@ AutoReqProv: no
|
||||
Cross Platform gcc for %{_target_platform}.
|
||||
|
||||
%if "%{_target_platform}" == "%{_host}"
|
||||
%debug_package
|
||||
%endif
|
||||
|
||||
# Don't clean build at the end
|
||||
%global __spec_rmbuild_cmd /bin/true
|
||||
|
||||
%prep
|
||||
#%if "%{git_commit_ver}" != "%{version}"
|
||||
#echo "Needed to update git commit for gcc %{version}"
|
||||
#exit 1
|
||||
#%endif
|
||||
|
||||
%setup -q -n gcc-%{version}%{?gcc_extraver}
|
||||
#-D -T
|
||||
#:<< ___EOF
|
||||
@ -806,7 +793,22 @@ CROSS_SYSTEM_HEADER_DIR=/usr/%{_target_platform}/include \
|
||||
%endif
|
||||
|
||||
%else
|
||||
make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
|
||||
|
||||
OPT_FLAGS="%{optflags}"
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=[123]//g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[123]//g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/\(-Wp,\)\?-U_FORTIFY_SOURCE//g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-flto=auto//g;s/-flto//g;s/-ffat-lto-objects//g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mfpmath=sse/-mfpmath=sse -msse2/g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/ -pipe / /g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-fno-omit-frame-pointer//g;s/-mbackchain//g;s/-mno-omit-leaf-frame-pointer//g'`
|
||||
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Werror=format-security/-Wformat-security/g'`
|
||||
|
||||
CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \
|
||||
| sed 's/ -Wformat-security / -Wformat -Wformat-security /'`"
|
||||
|
||||
make %{?_smp_mflags} CFLAGS="${OPT_LFAGS}" CXXFLAGS="${CXXFLAGS}"
|
||||
# CFLAGS='-O -I/usr/include/freetype2' LIBCFLAGS='-g -O2' \
|
||||
# LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
|
||||
%endif
|
||||
@ -964,11 +966,11 @@ rm -f %{buildroot}%{_infodir}/libquadmath.info*
|
||||
%{_bindir}/lto-dump
|
||||
%{_bindir}/%{_target_platform}-cc
|
||||
%{_bindir}/%{_target_platform}-gcc
|
||||
%{_bindir}/%{_target_platform}-gcc-%{gcc_ver}
|
||||
%{_bindir}/%{_target_platform}-gcc-ar
|
||||
%{_bindir}/%{_target_platform}-gcc-nm
|
||||
%{_bindir}/%{_target_platform}-gcc-ranlib
|
||||
%{_bindir}/%{_target_platform}-gcov
|
||||
%{_bindir}/%{_target_platform}-gcc-%{gcc_ver}
|
||||
%dir %{_libdir}/gcc
|
||||
%{_libdir}/gcc/*
|
||||
%ifarch x86_64 aarch64
|
||||
@ -1145,13 +1147,14 @@ rm -f %{buildroot}%{_infodir}/libquadmath.info*
|
||||
|
||||
%files -n %{libstdcxx_name}-devel
|
||||
%defattr(-,root,root)
|
||||
%dir %{_includedir}/c++
|
||||
%{_includedir}/c++/*
|
||||
%{_libdir}/libstdc++.a
|
||||
%{_libdir}/libstdc++exp.a
|
||||
%{_libdir}/libstdc++.so
|
||||
%{_libdir}/libsupc++.a
|
||||
%{_libdir}/libstdc++fs.a
|
||||
%dir %{_includedir}/c++
|
||||
%{_includedir}/c++/*
|
||||
%{_libdir}/libstdc++.modules.json
|
||||
#%doc libstdc++-v3/{ChangeLog*,README*,doc/html/}
|
||||
%endif
|
||||
|
||||
@ -1257,7 +1260,6 @@ rm -f %{buildroot}%{_infodir}/libquadmath.info*
|
||||
%endif
|
||||
%{_libdir}/libm2*.a
|
||||
%{_libdir}/libm2*.so
|
||||
%{_libdir}/libm2*.a
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
@ -1293,6 +1295,7 @@ rm -f %{buildroot}%{_infodir}/libquadmath.info*
|
||||
%{_prefix}/lib32/libstdc++.so
|
||||
%{_prefix}/lib32/libstdc++.so.*
|
||||
%{_prefix}/lib32/libstdc++fs.*a
|
||||
%{_prefix}/lib32/libstdc++.modules.json
|
||||
#
|
||||
%{_prefix}/lib32/libasan.a
|
||||
%{_prefix}/lib32/libasan.so
|
||||
@ -1383,6 +1386,12 @@ rm -f %{buildroot}%{_infodir}/libquadmath.info*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Jun 06 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 15.1.1+20250606git.f59d33ad-1mamba
|
||||
- update to 15.1.1+20250606git.f59d33ad
|
||||
|
||||
* Sun May 25 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 15.1.0-1mamba
|
||||
- update to 15.1.0
|
||||
|
||||
* Sat Oct 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 14.2.1+20240909git.3951efed-2mamba
|
||||
- enable more languages: m2, rust
|
||||
|
||||
|
Reference in New Issue
Block a user