ports: Unconditionally compile banan-os before building ports

This allows ports to use any banan-os library cleanly. Ninja is fast on
when everything is already compiled, so it doesn't add too much
overhead.
This commit is contained in:
Bananymous 2024-12-03 20:16:18 +02:00
parent a668593e6b
commit 0dd81328ff
1 changed files with 3 additions and 6 deletions

View File

@ -29,12 +29,9 @@ export OBJDUMP="$BANAN_TOOLCHAIN_TRIPLE-objdump"
export STRIP="$BANAN_TOOLCHAIN_TRIPLE-strip"
export CXXFILT="$BANAN_TOOLCHAIN_TRIPLE-c++filt"
if [ ! -f "$BANAN_SYSROOT/usr/lib/libc.a" ]; then
pushd "$BANAN_ROOT_DIR" >/dev/null
./bos libc || exit 1
./bos install || exit 1
popd >/dev/null
fi
pushd "$BANAN_ROOT_DIR" >/dev/null
./bos all && ./bos install || exit 1
popd >/dev/null
if [ "$BANAN_ARCH" = "i686" ]; then
export LDFLAGS="-shared-libgcc"