Skip to content

Commit

Permalink
Change (base) name to gcc13, use --program-suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Dec 13, 2024
1 parent 86a2f66 commit 883b5d1
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 214 deletions.
74 changes: 27 additions & 47 deletions rpm/cross-aarch64-gcc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ ExclusiveArch: %ix86 x86_64
# end crossbuild / accelerator section
%endif

%global binsuffix -13
%global gcc_version 13.3.1
%global gcc_release 1
%global _unpackaged_files_terminate_build 0
Expand Down Expand Up @@ -724,6 +725,7 @@ CC="$CC" CFLAGS="$OPT_FLAGS" CXXFLAGS="`echo $OPT_FLAGS | sed 's/ -Wall / /g'`"
--enable-lto \
--enable-linker-build-id \
--disable-libmpx \
--program-suffix=%{binsuffix} \
%if %{bootstrap} == 0
--enable-languages=c,c++${enablelgo},lto \
--enable-threads=posix \
Expand Down Expand Up @@ -1250,8 +1252,8 @@ EOF
chmod 755 %{buildroot}%{_prefix}/bin/c?9

cd ..
%find_lang %{name}
%find_lang cpplib
%find_lang %{name}%{binsuffix}
%find_lang cpplib%{binsuffix}

# Remove binaries we will not be including, so that they don't end up in
# gcc-debuginfo
Expand Down Expand Up @@ -1395,26 +1397,6 @@ if posix.access ("/sbin/ldconfig", "x") then
end
end

%post go
pushd %{_bindir}
if [ ! -f go ] ; then
ln -s go.gcc go
fi
if [ ! -f gofmt ] ; then
ln -s gofmt.gcc gofmt
fi
popd

%preun go
pushd %{_bindir}
if [ -L go ]; then
rm go
fi
if [ -L gofmt ]; then
rm gofmt
fi
popd

%post -n libstdc++ -p /sbin/ldconfig

%postun -n libstdc++ -p /sbin/ldconfig
Expand Down Expand Up @@ -1453,17 +1435,17 @@ popd

%files -f %{name}.lang
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
%{_prefix}/bin/c99
%{_prefix}/bin/gcc
%{_prefix}/bin/gcov
%{_prefix}/bin/gcov-tool
%{_prefix}/bin/gcov-dump
%{_prefix}/bin/gcc-ar
%{_prefix}/bin/gcc-nm
%{_prefix}/bin/gcc-ranlib
%{_prefix}/bin/lto-dump
%{_prefix}/bin/cc%{binsuffix}
%{_prefix}/bin/c89%{binsuffix}
%{_prefix}/bin/c99%{binsuffix}
%{_prefix}/bin/gcc%{binsuffix}
%{_prefix}/bin/gcov%{binsuffix}
%{_prefix}/bin/gcov-tool%{binsuffix}
%{_prefix}/bin/gcov-dump%{binsuffix}
%{_prefix}/bin/gcc-ar%{binsuffix}
%{_prefix}/bin/gcc-nm%{binsuffix}
%{_prefix}/bin/gcc-ranlib%{binsuffix}
%{_prefix}/bin/lto-dump%{binsuffix}
#%ifnarch %%{arm} aarch64 mipsel
#%%{_prefix}/bin/%%{gcc_target_platform}-gcc
#%%{_prefix}/bin/%%{gcc_target_platform}-gcc-ar
Expand Down Expand Up @@ -1779,13 +1761,13 @@ popd
%files doc
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}
%{_mandir}/man1/cpp.1*
%{_mandir}/man1/gcc.1*
%{_mandir}/man1/gcov.1*
%{_mandir}/man1/gcov-tool.1*
%{_mandir}/man1/gcov-dump.1*
%{_mandir}/man1/g++.1*
%{_mandir}/man1/lto-dump.1*
%{_mandir}/man1/cpp%{binsuffix}.1*
%{_mandir}/man1/gcc%{binsuffix}.1*
%{_mandir}/man1/gcov%{binsuffix}.1*
%{_mandir}/man1/gcov-tool%{binsuffix}.1*
%{_mandir}/man1/gcov-dump%{binsuffix}.1*
%{_mandir}/man1/g++%{binsuffix}.1*
%{_mandir}/man1/lto-dump%{binsuffix}.1*
%{_mandir}/man7/*
# !crossbuild
%endif
Expand All @@ -1810,8 +1792,8 @@ popd
%ifnarch %{arm} aarch64 mipsel
%{_prefix}/bin/%{gcc_target_platform}-*++
%endif
%{_prefix}/bin/g++
%{_prefix}/bin/c++
%{_prefix}/bin/g++%{binsuffix}
%{_prefix}/bin/c++%{binsuffix}
%dir %{_prefix}/%{_lib}/gcc
%dir %{_prefix}/%{_lib}/gcc/%{gcc_target_platform}
%dir %{_prefix}/%{_lib}/gcc/%{gcc_target_platform}/%{gcc_version}
Expand Down Expand Up @@ -2021,11 +2003,9 @@ popd

%if %{build_go}
%files go
%ghost %{_prefix}/bin/go
%attr(755,root,root) %{_prefix}/bin/go.gcc
%{_prefix}/bin/gccgo
%ghost %{_prefix}/bin/gofmt
%attr(755,root,root) %{_prefix}/bin/gofmt.gcc
%{_prefix}/bin/gccgo%{binsuffix}
%{_prefix}/bin/go%{binsuffix}
%{_prefix}/bin/gofmt%{binsuffix}
%{_mandir}/man1/gccgo.1*
%{_mandir}/man1/go.1*
%{_mandir}/man1/gofmt.1*
Expand Down
74 changes: 27 additions & 47 deletions rpm/cross-armv7hl-gcc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ ExclusiveArch: %ix86 x86_64
# end crossbuild / accelerator section
%endif

%global binsuffix -13
%global gcc_version 13.3.1
%global gcc_release 1
%global _unpackaged_files_terminate_build 0
Expand Down Expand Up @@ -724,6 +725,7 @@ CC="$CC" CFLAGS="$OPT_FLAGS" CXXFLAGS="`echo $OPT_FLAGS | sed 's/ -Wall / /g'`"
--enable-lto \
--enable-linker-build-id \
--disable-libmpx \
--program-suffix=%{binsuffix} \
%if %{bootstrap} == 0
--enable-languages=c,c++${enablelgo},lto \
--enable-threads=posix \
Expand Down Expand Up @@ -1250,8 +1252,8 @@ EOF
chmod 755 %{buildroot}%{_prefix}/bin/c?9

cd ..
%find_lang %{name}
%find_lang cpplib
%find_lang %{name}%{binsuffix}
%find_lang cpplib%{binsuffix}

# Remove binaries we will not be including, so that they don't end up in
# gcc-debuginfo
Expand Down Expand Up @@ -1395,26 +1397,6 @@ if posix.access ("/sbin/ldconfig", "x") then
end
end

%post go
pushd %{_bindir}
if [ ! -f go ] ; then
ln -s go.gcc go
fi
if [ ! -f gofmt ] ; then
ln -s gofmt.gcc gofmt
fi
popd

%preun go
pushd %{_bindir}
if [ -L go ]; then
rm go
fi
if [ -L gofmt ]; then
rm gofmt
fi
popd

%post -n libstdc++ -p /sbin/ldconfig

%postun -n libstdc++ -p /sbin/ldconfig
Expand Down Expand Up @@ -1453,17 +1435,17 @@ popd

%files -f %{name}.lang
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
%{_prefix}/bin/c99
%{_prefix}/bin/gcc
%{_prefix}/bin/gcov
%{_prefix}/bin/gcov-tool
%{_prefix}/bin/gcov-dump
%{_prefix}/bin/gcc-ar
%{_prefix}/bin/gcc-nm
%{_prefix}/bin/gcc-ranlib
%{_prefix}/bin/lto-dump
%{_prefix}/bin/cc%{binsuffix}
%{_prefix}/bin/c89%{binsuffix}
%{_prefix}/bin/c99%{binsuffix}
%{_prefix}/bin/gcc%{binsuffix}
%{_prefix}/bin/gcov%{binsuffix}
%{_prefix}/bin/gcov-tool%{binsuffix}
%{_prefix}/bin/gcov-dump%{binsuffix}
%{_prefix}/bin/gcc-ar%{binsuffix}
%{_prefix}/bin/gcc-nm%{binsuffix}
%{_prefix}/bin/gcc-ranlib%{binsuffix}
%{_prefix}/bin/lto-dump%{binsuffix}
#%ifnarch %%{arm} aarch64 mipsel
#%%{_prefix}/bin/%%{gcc_target_platform}-gcc
#%%{_prefix}/bin/%%{gcc_target_platform}-gcc-ar
Expand Down Expand Up @@ -1779,13 +1761,13 @@ popd
%files doc
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}
%{_mandir}/man1/cpp.1*
%{_mandir}/man1/gcc.1*
%{_mandir}/man1/gcov.1*
%{_mandir}/man1/gcov-tool.1*
%{_mandir}/man1/gcov-dump.1*
%{_mandir}/man1/g++.1*
%{_mandir}/man1/lto-dump.1*
%{_mandir}/man1/cpp%{binsuffix}.1*
%{_mandir}/man1/gcc%{binsuffix}.1*
%{_mandir}/man1/gcov%{binsuffix}.1*
%{_mandir}/man1/gcov-tool%{binsuffix}.1*
%{_mandir}/man1/gcov-dump%{binsuffix}.1*
%{_mandir}/man1/g++%{binsuffix}.1*
%{_mandir}/man1/lto-dump%{binsuffix}.1*
%{_mandir}/man7/*
# !crossbuild
%endif
Expand All @@ -1810,8 +1792,8 @@ popd
%ifnarch %{arm} aarch64 mipsel
%{_prefix}/bin/%{gcc_target_platform}-*++
%endif
%{_prefix}/bin/g++
%{_prefix}/bin/c++
%{_prefix}/bin/g++%{binsuffix}
%{_prefix}/bin/c++%{binsuffix}
%dir %{_prefix}/%{_lib}/gcc
%dir %{_prefix}/%{_lib}/gcc/%{gcc_target_platform}
%dir %{_prefix}/%{_lib}/gcc/%{gcc_target_platform}/%{gcc_version}
Expand Down Expand Up @@ -2021,11 +2003,9 @@ popd

%if %{build_go}
%files go
%ghost %{_prefix}/bin/go
%attr(755,root,root) %{_prefix}/bin/go.gcc
%{_prefix}/bin/gccgo
%ghost %{_prefix}/bin/gofmt
%attr(755,root,root) %{_prefix}/bin/gofmt.gcc
%{_prefix}/bin/gccgo%{binsuffix}
%{_prefix}/bin/go%{binsuffix}
%{_prefix}/bin/gofmt%{binsuffix}
%{_mandir}/man1/gccgo.1*
%{_mandir}/man1/go.1*
%{_mandir}/man1/gofmt.1*
Expand Down
74 changes: 27 additions & 47 deletions rpm/cross-i486-gcc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ ExclusiveArch: %ix86 x86_64
# end crossbuild / accelerator section
%endif

%global binsuffix -13
%global gcc_version 13.3.1
%global gcc_release 1
%global _unpackaged_files_terminate_build 0
Expand Down Expand Up @@ -724,6 +725,7 @@ CC="$CC" CFLAGS="$OPT_FLAGS" CXXFLAGS="`echo $OPT_FLAGS | sed 's/ -Wall / /g'`"
--enable-lto \
--enable-linker-build-id \
--disable-libmpx \
--program-suffix=%{binsuffix} \
%if %{bootstrap} == 0
--enable-languages=c,c++${enablelgo},lto \
--enable-threads=posix \
Expand Down Expand Up @@ -1250,8 +1252,8 @@ EOF
chmod 755 %{buildroot}%{_prefix}/bin/c?9

cd ..
%find_lang %{name}
%find_lang cpplib
%find_lang %{name}%{binsuffix}
%find_lang cpplib%{binsuffix}

# Remove binaries we will not be including, so that they don't end up in
# gcc-debuginfo
Expand Down Expand Up @@ -1395,26 +1397,6 @@ if posix.access ("/sbin/ldconfig", "x") then
end
end

%post go
pushd %{_bindir}
if [ ! -f go ] ; then
ln -s go.gcc go
fi
if [ ! -f gofmt ] ; then
ln -s gofmt.gcc gofmt
fi
popd

%preun go
pushd %{_bindir}
if [ -L go ]; then
rm go
fi
if [ -L gofmt ]; then
rm gofmt
fi
popd

%post -n libstdc++ -p /sbin/ldconfig

%postun -n libstdc++ -p /sbin/ldconfig
Expand Down Expand Up @@ -1453,17 +1435,17 @@ popd

%files -f %{name}.lang
%defattr(-,root,root,-)
%{_prefix}/bin/cc
%{_prefix}/bin/c89
%{_prefix}/bin/c99
%{_prefix}/bin/gcc
%{_prefix}/bin/gcov
%{_prefix}/bin/gcov-tool
%{_prefix}/bin/gcov-dump
%{_prefix}/bin/gcc-ar
%{_prefix}/bin/gcc-nm
%{_prefix}/bin/gcc-ranlib
%{_prefix}/bin/lto-dump
%{_prefix}/bin/cc%{binsuffix}
%{_prefix}/bin/c89%{binsuffix}
%{_prefix}/bin/c99%{binsuffix}
%{_prefix}/bin/gcc%{binsuffix}
%{_prefix}/bin/gcov%{binsuffix}
%{_prefix}/bin/gcov-tool%{binsuffix}
%{_prefix}/bin/gcov-dump%{binsuffix}
%{_prefix}/bin/gcc-ar%{binsuffix}
%{_prefix}/bin/gcc-nm%{binsuffix}
%{_prefix}/bin/gcc-ranlib%{binsuffix}
%{_prefix}/bin/lto-dump%{binsuffix}
#%ifnarch %%{arm} aarch64 mipsel
#%%{_prefix}/bin/%%{gcc_target_platform}-gcc
#%%{_prefix}/bin/%%{gcc_target_platform}-gcc-ar
Expand Down Expand Up @@ -1779,13 +1761,13 @@ popd
%files doc
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}
%{_mandir}/man1/cpp.1*
%{_mandir}/man1/gcc.1*
%{_mandir}/man1/gcov.1*
%{_mandir}/man1/gcov-tool.1*
%{_mandir}/man1/gcov-dump.1*
%{_mandir}/man1/g++.1*
%{_mandir}/man1/lto-dump.1*
%{_mandir}/man1/cpp%{binsuffix}.1*
%{_mandir}/man1/gcc%{binsuffix}.1*
%{_mandir}/man1/gcov%{binsuffix}.1*
%{_mandir}/man1/gcov-tool%{binsuffix}.1*
%{_mandir}/man1/gcov-dump%{binsuffix}.1*
%{_mandir}/man1/g++%{binsuffix}.1*
%{_mandir}/man1/lto-dump%{binsuffix}.1*
%{_mandir}/man7/*
# !crossbuild
%endif
Expand All @@ -1810,8 +1792,8 @@ popd
%ifnarch %{arm} aarch64 mipsel
%{_prefix}/bin/%{gcc_target_platform}-*++
%endif
%{_prefix}/bin/g++
%{_prefix}/bin/c++
%{_prefix}/bin/g++%{binsuffix}
%{_prefix}/bin/c++%{binsuffix}
%dir %{_prefix}/%{_lib}/gcc
%dir %{_prefix}/%{_lib}/gcc/%{gcc_target_platform}
%dir %{_prefix}/%{_lib}/gcc/%{gcc_target_platform}/%{gcc_version}
Expand Down Expand Up @@ -2021,11 +2003,9 @@ popd

%if %{build_go}
%files go
%ghost %{_prefix}/bin/go
%attr(755,root,root) %{_prefix}/bin/go.gcc
%{_prefix}/bin/gccgo
%ghost %{_prefix}/bin/gofmt
%attr(755,root,root) %{_prefix}/bin/gofmt.gcc
%{_prefix}/bin/gccgo%{binsuffix}
%{_prefix}/bin/go%{binsuffix}
%{_prefix}/bin/gofmt%{binsuffix}
%{_mandir}/man1/gccgo.1*
%{_mandir}/man1/go.1*
%{_mandir}/man1/gofmt.1*
Expand Down
Loading

0 comments on commit 883b5d1

Please sign in to comment.