Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion gcc.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM external gcc 12.2.0
### RPM external gcc 12.2.1
## USE_COMPILER_VERSION
## INITENV +PATH LD_LIBRARY_PATH %{i}/lib64
# Use the git repository for fetching the sources. This gives us more control while developing
Expand All @@ -24,6 +24,8 @@ Source3: https://ftp.gnu.org/gnu/mpc/mpc-%{mpcVersion}.tar.gz
Source4: http://isl.gforge.inria.fr/isl-%{islVersion}.tar.bz2
Source12: http://zlib.net/zlib-%{zlibVersion}.tar.gz
Source13: https://github.com/facebook/zstd/releases/download/v%{zstdVersion}/zstd-%{zstdVersion}.tar.gz
#Fix for array-bound
Source14: https://github.com/gcc-mirror/gcc/commit/49ba4fdeb648c149fa7d964ba812084262c3d06f.patch

%ifos linux
%define bisonVersion 3.8.2
Expand All @@ -44,6 +46,7 @@ Patch1: gcc-flex-disable-doc
%prep

%setup -T -b 0 -n %{moduleName}
patch -p1 < %{_sourcedir}/49ba4fdeb648c149fa7d964ba812084262c3d06f.patch

# Filter out private stuff from RPM requires headers.
cat << \EOF > %{name}-req
Expand Down
5 changes: 5 additions & 0 deletions scram-tools.file/tools/gcc/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility-inlines-hidden"
GCC_CXXFLAGS="$GCC_CXXFLAGS -fno-math-errno --param vect-max-version-for-alias-checks=50"
GCC_CXXFLAGS="$GCC_CXXFLAGS -Xassembler --compress-debug-sections"

#FIXME: GCC 12.2 workaround
if [[ "$GCC_VERSION" =~ ^12\.2\. ]] ; then
GCC_CXXFLAGS="$GCC_CXXFLAGS -Wno-error=array-bounds -Warray-bounds"
fi

# Explicitly use the GNU binutils ld.bfd linker
GCC_CXXFLAGS="$GCC_CXXFLAGS -fuse-ld=bfd"

Expand Down