newlib: specify build and host to configure

This commit is contained in:
Giacomo Tesio 2017-04-22 14:26:51 +02:00
parent 9d09c4d45e
commit 729aef71c2
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export CFLAGS_FOR_TARGET="-g -gdwarf-2 -ggdb -O$NEWLIB_OPTIMIZATION"
mkdir $NEWLIB_BUILD &&
mkdir $NEWLIB_PREFIX &&
cd $NEWLIB_BUILD &&
$NEWLIB_SRC/configure --prefix=$NEWLIB_PREFIX --target=x86_64-jehanne &&
$NEWLIB_SRC/configure --prefix=$NEWLIB_PREFIX --build=x86_64-pc-linux-gnu --host=x86_64-jehanne --target=x86_64-jehanne &&
make all && make install &&
rm -fr $JEHANNE/sys/posix/newlib &&
rm -fr $JEHANNE/arch/amd64/lib/newlib &&