2019-08-03 12:06:11 +02:00
|
|
|
name: gcc
|
2019-10-18 23:28:08 +02:00
|
|
|
version: 9.2.0
|
|
|
|
release: 1
|
|
|
|
sources:
|
|
|
|
- https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz
|
|
|
|
- specs
|
|
|
|
|
|
|
|
build-dependencies:
|
|
|
|
- gmp-dev
|
|
|
|
- mpfr-dev
|
|
|
|
- mpc-dev
|
|
|
|
|
2019-08-03 12:06:11 +02:00
|
|
|
dependencies:
|
|
|
|
- gmp
|
|
|
|
- mpfr
|
|
|
|
- mpc
|
|
|
|
- binutils
|
|
|
|
|
|
|
|
dirname: build
|
|
|
|
@configure
|
2019-08-21 23:06:34 +02:00
|
|
|
mkdir %{dirname}
|
|
|
|
cd %{dirname}
|
2019-08-22 02:14:26 +02:00
|
|
|
|
|
|
|
if [ "$(uname -m)" = x86_64 ]; then
|
2019-08-21 23:06:34 +02:00
|
|
|
sed -e '/m64=/s/lib64/lib/' ../gcc-%{version}/gcc/config/i386/t-linux64 > tmp
|
|
|
|
mv tmp ../gcc-%{version}/gcc/config/i386/t-linux64
|
|
|
|
fi
|
2019-08-22 02:14:26 +02:00
|
|
|
|
2019-10-18 23:28:08 +02:00
|
|
|
export CC=gcc
|
|
|
|
export CXX=g++
|
2019-08-22 02:14:26 +02:00
|
|
|
../gcc-%{version}/configure \
|
2019-10-18 23:28:08 +02:00
|
|
|
CFLAGS="$CFLAGS -isystem %{prefix}/include" \
|
|
|
|
CXXFLAGS="$CXXFLAGS -isystem %{prefix}/include" \
|
|
|
|
--with-tune=generic \
|
|
|
|
\
|
2019-09-04 13:42:33 +02:00
|
|
|
--prefix=%{prefix} \
|
|
|
|
--libdir=%{prefix}/lib \
|
2019-08-22 02:14:26 +02:00
|
|
|
--disable-multilib \
|
|
|
|
--disable-libssp \
|
|
|
|
--disable-libmpx \
|
|
|
|
--disable-libmudflap \
|
|
|
|
--disable-libsanitizer \
|
2019-10-18 23:28:08 +02:00
|
|
|
--disable-bootstrap \
|
2019-08-22 02:14:26 +02:00
|
|
|
--disable-nls \
|
|
|
|
--disable-werror \
|
|
|
|
--enable-languages=c,c++ \
|
2019-10-18 23:28:08 +02:00
|
|
|
--build=x86_64-weird-linux-musl
|