From 4102d630586b4c4a5219f42d8e2b6eed6a38e8fe Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Tue, 17 Dec 2019 00:32:01 +0100 Subject: [PATCH] gcc native: no --with-newlib; no CFLAGS_FOR_TAGET; cleanup --- cross/native.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/cross/native.sh b/cross/native.sh index caa2c0f..dcbf7ca 100755 --- a/cross/native.sh +++ b/cross/native.sh @@ -66,7 +66,7 @@ mkdir -p $GCC_BUILD_DIR cd $GCC_BUILD_DIR/x86_64-jehanne/libstdc++-v3 && rm -f config.cache && $WORKING_DIR/src/gcc/libstdc++-v3/configure --srcdir=$WORKING_DIR/src/gcc/libstdc++-v3 --cache-file=./config.cache --enable-multilib --with-cross-host=x86_64-pc-linux-gnu --prefix=/posix --with-sysroot=/ --with-build-sysroot=$JEHANNE --enable-languages=c,c++,lto --program-transform-name='s&^&x86_64-jehanne-&' --disable-option-checking --with-target-subdir=x86_64-jehanne --build=x86_64-pc-linux-gnu --host=x86_64-jehanne --target=x86_64-jehanne && - make && + make && make DESTDIR=$JEHANNE/pkgs/libstdc++-v3/9.2.0/ install ) >> $LOG 2>&1 failOnError $? "building libstdc++-v3" @@ -147,7 +147,7 @@ fi cp $CROSS_DIR/patch/MakeNothing.in $WORKING_DIR/src/binutils/bfd/po/Makefile.in && cp $CROSS_DIR/patch/MakeNothing.in $WORKING_DIR/src/binutils/gas/doc/Makefile.in && cp $CROSS_DIR/patch/MakeNothing.in $WORKING_DIR/src/binutils/binutils/doc/Makefile.in && - make && + make && make DESTDIR=$JEHANNE/pkgs/binutils/2.33.1/ install ) >> $LOG 2>&1 failOnError $? "Building binutils" @@ -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 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