Luna/ports/gcc/PACKAGE
apio 8476ea0dc9
All checks were successful
continuous-integration/drone/push Build is passing
ports: Port gcc =D
The main compiler (cc1) crashes in some obscure null dereference that I'll have to investigate.

However, it compiles fine, and the preprocessor seems to work...
2023-10-15 13:13:11 +02:00

36 lines
806 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=$BUILD_SYSROOT --enable-languages=c,c++
}
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
}