newlib: ansification + upstream update

This commit is contained in:
2018-11-26 04:02:20 +01:00
parent 9f0c429895
commit e7ffc3d906
2 changed files with 6 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ export CC=gcc
# NOTE: we use -O0 because apparently vsprintf functions do not # NOTE: we use -O0 because apparently vsprintf functions do not
# work with -O2. # work with -O2.
export CFLAGS_FOR_TARGET="-g -gdwarf-2 -ggdb -O$NEWLIB_OPTIMIZATION" export CFLAGS_FOR_TARGET="-g -gdwarf-2 -ggdb -O$NEWLIB_OPTIMIZATION -std=gnu11"
( (
rm -fr $NEWLIB_BUILD && rm -fr $NEWLIB_BUILD &&
@@ -79,14 +79,12 @@ export CFLAGS_FOR_TARGET="-g -gdwarf-2 -ggdb -O$NEWLIB_OPTIMIZATION"
mkdir $NEWLIB_BUILD && mkdir $NEWLIB_BUILD &&
mkdir $NEWLIB_PREFIX && mkdir $NEWLIB_PREFIX &&
cd $NEWLIB_BUILD && cd $NEWLIB_BUILD &&
$NEWLIB_SRC/configure --enable-newlib-mb --disable-newlib-fvwrite-in-streamio --prefix=$NEWLIB_PREFIX --target=x86_64-jehanne && $NEWLIB_SRC/configure --enable-newlib-mb --disable-newlib-fvwrite-in-streamio --prefix=/pkgs/newlib --target=x86_64-jehanne &&
make all && make install && make all && make DESTDIR=$NEWLIB_PREFIX install &&
rm -fr $JEHANNE/sys/posix/newlib && rm -fr $JEHANNE/sys/posix/newlib &&
rm -fr $JEHANNE/arch/amd64/lib/newlib && rm -fr $JEHANNE/arch/amd64/lib/newlib &&
mv $NEWLIB_PREFIX/x86_64-jehanne/include/ $JEHANNE/sys/posix/newlib && cp -fr $NEWLIB_PREFIX/pkgs/newlib/ $JEHANNE/pkgs/ &&
echo "Newlib headers installed at $JEHANNE/sys/posix/newlib/" && echo "Newlib headers installed at $JEHANNE/pkgs/newlib/"
mv $NEWLIB_PREFIX/x86_64-jehanne/lib/ $JEHANNE/arch/amd64/lib/newlib/ &&
echo "Newlib libraries installed at $JEHANNE/arch/amd64/lib/newlib/"
) >> $NEWLIB/newlib.build.log 2>&1 ) >> $NEWLIB/newlib.build.log 2>&1
failOnError $? "building newlib" failOnError $? "building newlib"