gcc native: initialize newlib (dedicated environment and SIGCHLD management)

This commit is contained in:
2019-12-18 18:15:17 +01:00
parent 905f03e6ae
commit 57cedd3786
5 changed files with 80 additions and 22 deletions

View File

@@ -21,12 +21,12 @@ if [ "$JEHANNE" = "" ]; then
exit 1
fi
REPONAME=`basename $JEHANNE`
WORKING_DIR=`dirname $JEHANNE`
WORKING_DIR="$WORKING_DIR/$REPONAME.TOOLCHAIN"
WORKING_DIR="$JEHANNE_TOOLCHAIN"
CROSS_DIR="$JEHANNE/hacking/cross"
LOG="$WORKING_DIR/cross.build.log"
export LD_PRELOAD=
function failOnError {
# $1 -> exit status on a previous command
# $2 -> task description
@@ -110,7 +110,7 @@ mkdir -p $GCC_BUILD_DIR
(
cd $WORKING_DIR &&
( grep -q jehanne src/gcc/gcc/config.gcc || patch -p1 < $CROSS_DIR/patch/gcc.patch ) &&
cp $CROSS_DIR/patch/gcc/gcc/config/jehanne.h src/gcc/gcc/config &&
cp $CROSS_DIR/patch/gcc/gcc/config/* src/gcc/gcc/config &&
sed -i 's/ftp/https/g' src/gcc/contrib/download_prerequisites &&
cd src &&
( cd gcc && ./contrib/download_prerequisites ) &&