Archived
3
0

gcc: generic compilation, no more spec file

This commit is contained in:
Philippe PITTOLI 2019-10-18 23:28:08 +02:00
parent c93e3d669c
commit c27fcc004e

View File

@ -1,7 +1,15 @@
name: gcc name: gcc
version: 9.1.0 version: 9.2.0
release: 2 release: 1
sources: https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz sources:
- https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz
- specs
build-dependencies:
- gmp-dev
- mpfr-dev
- mpc-dev
dependencies: dependencies:
- gmp - gmp
- mpfr - mpfr
@ -18,7 +26,13 @@ dirname: build
mv tmp ../gcc-%{version}/gcc/config/i386/t-linux64 mv tmp ../gcc-%{version}/gcc/config/i386/t-linux64
fi fi
export CC=gcc
export CXX=g++
../gcc-%{version}/configure \ ../gcc-%{version}/configure \
CFLAGS="$CFLAGS -isystem %{prefix}/include" \
CXXFLAGS="$CXXFLAGS -isystem %{prefix}/include" \
--with-tune=generic \
\
--prefix=%{prefix} \ --prefix=%{prefix} \
--libdir=%{prefix}/lib \ --libdir=%{prefix}/lib \
--disable-multilib \ --disable-multilib \
@ -26,9 +40,8 @@ dirname: build
--disable-libmpx \ --disable-libmpx \
--disable-libmudflap \ --disable-libmudflap \
--disable-libsanitizer \ --disable-libsanitizer \
--disable-bootstrap \
--disable-nls \ --disable-nls \
--disable-werror \ --disable-werror \
--enable-languages=c,c++ \ --enable-languages=c,c++ \
--target=x86_64-weird-linux-musl \ --build=x86_64-weird-linux-musl
--build=x86_64-weird-linux-musl \
--host=x86_64-weird-linux-musl