From 3f3f02c9dd9fbebfc19acdcac030d9e603cfa3f4 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Tue, 19 Nov 2019 00:24:34 +0100 Subject: [PATCH] newlib: build.sh: copy output libraries to /posix and rename for easier linking --- cross/pkgs/newlib/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cross/pkgs/newlib/build.sh b/cross/pkgs/newlib/build.sh index 24c2fc8..6fc339d 100755 --- a/cross/pkgs/newlib/build.sh +++ b/cross/pkgs/newlib/build.sh @@ -88,6 +88,15 @@ export CFLAGS_FOR_TARGET="-g -gdwarf-2 -ggdb -O$NEWLIB_OPTIMIZATION -std=gnu11" ) >> $NEWLIB/newlib.build.log 2>&1 failOnError $? "building newlib" +# emultate bind for the cross compiler +cp -fr $JEHANNE/pkgs/newlib/x86_64-jehanne/* $JEHANNE/posix + +# rename libc to libnewlibc to avoid name clash with Jehanne libc +mv $JEHANNE/posix/lib/libc.a $JEHANNEposix/lib/libnewlibc.a +mv $JEHANNE/posix/lib/libm.a $JEHANNEposix/lib/libnewlibm.a +mv $JEHANNE/posix/lib/libg.a $JEHANNEposix/lib/libnewlibg.a + + kill $dotter wait $dotter 2>/dev/null