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