gcc: generic compilation, no more spec file
This commit is contained in:
parent
c93e3d669c
commit
c27fcc004e
@ -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
|
|
||||||
|
Reference in New Issue
Block a user