This repository has been archived on 2022-01-17. You can view files and clone it, but cannot push or open issues/pull-requests.
2019-08-03 12:06:11 +02:00
|
|
|
name: gcc
|
|
|
|
version: 9.1.0
|
2019-08-21 23:06:34 +02:00
|
|
|
release: 2
|
2019-08-03 12:06:11 +02:00
|
|
|
sources: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz
|
|
|
|
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
|
|
|
|
|
|
|
../gcc-%{version}/configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--disable-multilib \
|
|
|
|
--disable-libssp \
|
|
|
|
--disable-libmpx \
|
|
|
|
--disable-libmudflap \
|
|
|
|
--disable-libsanitizer \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-werror \
|
|
|
|
--enable-languages=c,c++ \
|
|
|
|
--target=x86_64-junk-linux-musl \
|
2019-08-23 14:14:08 +02:00
|
|
|
--build=x86_64-junk-linux-musl \
|
2019-08-22 02:14:26 +02:00
|
|
|
--host=x86_64-junk-linux-musl
|
2019-08-03 12:06:11 +02:00
|
|
|
|