apio
2780ee2ebc
All checks were successful
Build and test / build (push) Successful in 1m54s
Now that gcc works, we don't need to bloat the binary with asserts.
36 lines
826 B
Plaintext
36 lines
826 B
Plaintext
# Basic information
|
|
name="gcc"
|
|
version="12.2.0"
|
|
dependencies=(gmp mpc mpfr binutils)
|
|
|
|
# Download options
|
|
format="tar"
|
|
url="https://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.xz"
|
|
output="gcc-$version.tar.xz"
|
|
sha256sum="e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff"
|
|
|
|
# Build instructions
|
|
do_patch()
|
|
{
|
|
patch -ui $portdir/gcc.patch -p 1 -d $srcdir/..
|
|
}
|
|
|
|
do_configure()
|
|
{
|
|
$srcdir/configure --prefix=/usr --target=$LUNA_ARCH-luna --host=$LUNA_ARCH-luna --disable-nls --with-build-sysroot=$LUNA_BASE --enable-languages=c,c++ --enable-initfini-array
|
|
}
|
|
|
|
do_build()
|
|
{
|
|
export ac_cv_c_bigendian=no
|
|
|
|
make all-gcc -j$MAKEJOBS
|
|
make all-target-libgcc -j$MAKEJOBS CFLAGS_FOR_TARGET='-g -O2 -mcmodel=large -mno-red-zone'
|
|
}
|
|
|
|
do_install()
|
|
{
|
|
make install-gcc
|
|
make install-target-libgcc
|
|
}
|