gcc native: no --with-newlib; no CFLAGS_FOR_TAGET; cleanup

This commit is contained in:
Giacomo Tesio 2019-12-17 00:32:01 +01:00
parent 38eaa1ad99
commit 4102d63058
1 changed files with 3 additions and 10 deletions

View File

@ -167,10 +167,8 @@ if [ ! -d $GCC_BUILD_DIR ]; then
mkdir $GCC_BUILD_DIR
fi
(
export CFLAGS="-DHIDE_JEHANNE_APW" &&
export CXXFLAGS=$CFLAGS &&
cd $GCC_BUILD_DIR &&
$WORKING_DIR/src/gcc/configure --host=x86_64-jehanne --without-isl --with-newlib --prefix=/posix --with-sysroot=/ --with-build-sysroot=$JEHANNE --enable-languages=c,c++ --with-gmp=$JEHANNE/posix --with-mpfr=$JEHANNE/posix --with-mpc=$JEHANNE/posix --disable-shared --disable-threads --disable-tls --disable-bootstrap --disable-libgomp --disable-werror --disable-nls &&
$WORKING_DIR/src/gcc/configure --host=x86_64-jehanne --without-isl --prefix=/posix --with-sysroot=/ --with-build-sysroot=$JEHANNE --enable-languages=c,c++ --with-gmp=$JEHANNE/posix --with-mpfr=$JEHANNE/posix --with-mpc=$JEHANNE/posix --disable-shared --disable-threads --disable-tls --disable-bootstrap --disable-libgomp --disable-werror --disable-nls &&
make all-gcc all-target-libgcc &&
make DESTDIR=$JEHANNE/pkgs/gcc/9.2.0/ install-gcc install-target-libgcc
) >> $LOG 2>&1
@ -178,11 +176,6 @@ failOnError $? "building gcc"
cp -pfr $JEHANNE/pkgs/gcc/9.2.0/posix/* $JEHANNE/posix
# NOTES work in progress
# in cstdlib replaced #include_next <stdlib.h> with #include.
# in newlib: preserved libm.a
# in GCC's src commented ifdef TIOCGWINSZ in gcc/diagnostic.c, function get_terminal_width
#
## add sh
#ln -sf /bin/bash $JEHANNE/hacking/cross/toolchain/bin/x86_64-jehanne-sh