1
- ### RPM external gcc 11.2 .1
1
+ ### RPM external gcc 11.4 .1
2
2
## USE_COMPILER_VERSION
3
3
## INITENV +PATH LD_LIBRARY_PATH %{i}/lib64
4
4
# Use the git repository for fetching the sources. This gives us more control while developing
5
5
# a new platform so that we can compile yet to be released versions of the compiler.
6
6
# See: https://gcc.gnu.org/viewcvs/gcc/branches/gcc-8-branch/?view=log
7
- %define gccTag a0a0499b8bb920fdd98e791804812f001f0b4fe8
7
+ %define gccTag d41085966d842e54fd4b528c719ed5af2e51c473
8
8
%define gccBranch releases/gcc-11
9
9
10
10
%define moduleName %{n }-%{realversion }
@@ -13,20 +13,22 @@ Source0: git+https://github.com/gcc-mirror/%{n}.git?obj=%{gccBranch}/%{gccTag}&e
13
13
%define keep_archives true
14
14
15
15
%define gmpVersion 6.2.1
16
- %define mpfrVersion 4.1.0
17
- %define mpcVersion 1.2.1
18
- %define islVersion 0.24
19
- %define zlibVersion 1.2.11
16
+ %define mpfrVersion 4.2.0
17
+ %define mpcVersion 1.3.1
18
+ %define islVersion 0.26
19
+ %define zlibVersion 1.2.13
20
+ %define zstdVersion 1.4.5
20
21
Source1: https://gmplib.org/download/gmp/gmp-%{gmpVersion }.tar.bz2
21
22
Source2: http://www.mpfr.org/mpfr-%{mpfrVersion }/mpfr-%{mpfrVersion }.tar.bz2
22
23
Source3: https://ftp.gnu.org/gnu/mpc/mpc-%{mpcVersion }.tar.gz
23
- Source4: http ://isl.gforge.inria.fr /isl-%{islVersion }.tar.bz2
24
+ Source4: https ://libisl.sourceforge.io /isl-%{islVersion }.tar.bz2
24
25
Source12: http://zlib.net/zlib-%{zlibVersion }.tar.gz
26
+ Source13: https://github.com/facebook/zstd/releases/download/v%{zstdVersion }/zstd-%{zstdVersion }.tar.gz
25
27
26
28
%ifos linux
27
- %define bisonVersion 3.7.6
28
- %define binutilsVersion 2.36.1
29
- %define elfutilsVersion 0.183
29
+ %define bisonVersion 3.8.2
30
+ %define binutilsVersion 2.40
31
+ %define elfutilsVersion 0.189
30
32
%define m4Version 1.4.19
31
33
%define flexVersion 2.6.4
32
34
Source7: http://ftp.gnu.org/gnu/bison/bison-%{bisonVersion }.tar.gz
@@ -38,12 +40,10 @@ Source11: https://github.com/westes/flex/releases/download/v%{flexVersion}/flex-
38
40
39
41
Patch0: gcc-flex-nonfull-path-m4
40
42
Patch1: gcc-flex-disable-doc
41
- Patch2: gcc-03af8492bee6243a9d10e78fea1a3e423bd5f9cd
42
43
43
44
%prep
44
45
45
46
%setup -T -b 0 -n %{moduleName }
46
- %patch2 -p1
47
47
48
48
# Filter out private stuff from RPM requires headers.
49
49
cat << \EOF > %{name }-req
@@ -96,6 +96,7 @@ EOF_CMS_H
96
96
%setup -D -T -b 3 -n mpc-%{mpcVersion }
97
97
%setup -D -T -b 4 -n isl-%{islVersion }
98
98
%setup -D -T -b 12 -n zlib-%{zlibVersion }
99
+ %setup -D -T -b 13 -n zstd-%{zstdVersion }
99
100
100
101
%ifos linux
101
102
%setup -D -T -b 7 -n bison-%{bisonVersion }
@@ -139,6 +140,10 @@ CFLAGS="${CONF_FLAGS}" ./configure --static --prefix=%{i}/tmp/sw
139
140
make %{makeprocesses }
140
141
make install
141
142
143
+ #Build and install zstd static library
144
+ make -C ../zstd-%{zstdVersion }/lib %{makeprocesses } \
145
+ install-static install-includes prefix= %{i }/tmp/sw \
146
+ CPPFLAGS= "-fPIC" CFLAGS= "-fPIC"
142
147
%ifos linux
143
148
CONF_BINUTILS_OPTS= "--enable-ld= default --enable-lto --enable-plugins --enable-threads"
144
149
CONF_GCC_WITH_LTO= "--enable-ld= default --enable-lto"
@@ -166,20 +171,13 @@ make install
166
171
# Build Flex (for building)
167
172
cd ../flex-%{flexVersion }
168
173
./configure --disable-nls --prefix= %{i }/tmp/sw \
174
+ --enable-static --disable-shared \
169
175
--build= %{_build } --host= %{_host } \
170
176
CC= "$CC" CXX= "$CXX"
171
177
make %{makeprocesses }
172
178
make install
173
179
hash -r
174
180
175
- # Build Flex
176
- cd ../flex-%{flexVersion }
177
- ./configure --disable-nls --prefix= %{i } \
178
- --build= %{_build } --host= %{_host } \
179
- CC= "$CC" CXX= "$CXX"
180
- make %{makeprocesses }
181
- make install
182
-
183
181
# Build elfutils
184
182
cd ../elfutils-%{elfutilsVersion }
185
183
./configure --disable-static --with-zlib --without-bzlib --without-lzma \
@@ -263,13 +261,15 @@ export LD_LIBRARY_PATH=%{i}/lib64:%{i}/lib:$LD_LIBRARY_PATH
263
261
$CONF_GCC_OS_SPEC $CONF_GCC_WITH_LTO --with-gmp= %{i } --with-mpfr= %{i } --enable-bootstrap \
264
262
--with-mpc= %{i } --with-isl= %{i } --enable-checking= release \
265
263
--build= %{_build } --host= %{_host } --enable-libstdcxx-time= rt $CONF_GCC_ARCH_SPEC \
266
- --enable-shared --disable-libgcj CC= "$CC" CXX= "$CXX" CPP= "$CPP" CXXCPP= "$CXXCPP" \
264
+ --enable-shared --disable-libgcj \
265
+ --with-zstd= %{i }/tmp/sw \
266
+ CC= "$CC" CXX= "$CXX" CPP= "$CPP" CXXCPP= "$CXXCPP" \
267
267
CFLAGS= "-I%{i }/tmp/sw/include" CXXFLAGS= "-I%{i }/tmp/sw/include" LDFLAGS= "-L%{i }/tmp/sw/lib"
268
268
269
269
make %{makeprocesses } profiledbootstrap
270
270
271
271
%install
272
- cd %_builddir /%{moduleName }/obj && make install
272
+ cd %_builddir /%{moduleName }/obj && make install
273
273
274
274
ln -s gcc %{i }/bin/cc
275
275
find %{i }/lib %{i }/lib64 -name '*.la' -exec rm -f {} \; || true
0 commit comments