From 0dd81328ff5fadfcc02074a629b0a2bac6f3023b Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 3 Dec 2024 20:16:18 +0200 Subject: [PATCH] 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. --- ports/install.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ports/install.sh b/ports/install.sh index a3f7cd3b..14699f9c 100755 --- a/ports/install.sh +++ b/ports/install.sh @@ -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"