From 5734d5963963a9bb65e14ea3d1b815fa2c11c749 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Fri, 17 Jan 2020 01:21:40 +0100 Subject: [PATCH] newlib: merge LibPOSIX into libc.a (and libg.a) so that you just need to specify -lc --- cross/pkgs/newlib/build.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/cross/pkgs/newlib/build.sh b/cross/pkgs/newlib/build.sh index 88d0c77..01c5bef 100755 --- a/cross/pkgs/newlib/build.sh +++ b/cross/pkgs/newlib/build.sh @@ -59,6 +59,17 @@ function failOnError { fi } +function mergeLibPOSIX { + TARGET_LIB=$1 + echo "Merging $JEHANNE/arch/$ARCH/lib/libposix.a into $TARGET_LIB." && + x86_64-jehanne-ar -M <> $NEWLIB/newlib.build.log 2>&1 failOnError $? "building newlib" + + # emultate bind for the cross compiler mkdir -p $JEHANNE/posix cp -fr $JEHANNE/pkgs/newlib/x86_64-jehanne/* $JEHANNE/posix