scripts/bootstrap.sh: add libucontext to depends of full cross gcc

the GDC frontend requires GDC to build since
GCC 12, and libucontext is required by GDC
This commit is contained in:
Celeste 2024-08-29 05:27:59 +00:00 committed by Ariadne Conill
parent 12faa27b1c
commit 6cce1d0007

View File

@ -92,8 +92,13 @@ if ! CHOST=$TARGET_ARCH BOOTSTRAP=nolibc APKBUILD=$(apkbuildname musl) abuild up
CHOST=$TARGET_ARCH BOOTSTRAP=nolibc APKBUILD=$(apkbuildname musl) abuild -r
fi
# Full cross GCC
# Build libucontext without docs and pkgconfig file as a dependency for gcc-gdc
EXTRADEPENDS_BUILD="gcc-pass2-$TARGET_ARCH" \
EXTRADEPENDS_TARGET="musl musl-dev" \
CHOST=$TARGET_ARCH BOOTSTRAP=nobase APKBUILD=$(apkbuildname libucontext) abuild -r
# Full cross GCC
EXTRADEPENDS_TARGET="musl musl-dev libucontext-dev" \
CTARGET=$TARGET_ARCH BOOTSTRAP=nobase APKBUILD=$(apkbuildname gcc) abuild -r
# Cross build-base