Skip to content

Commit

Permalink
Toolchain: Build GCC with --with-newlib
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Apr 29, 2019
1 parent 8cbb7f1 commit 02b69cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Toolchain/BuildIt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo $DIR

TARGET=i686-pc-serenity
PREFIX="$DIR/Local"
SYSROOT="$DIR/../Base"
SYSROOT="$DIR/../Root"

mkdir -p "$DIR/Tarballs"

Expand Down Expand Up @@ -68,6 +68,8 @@ pushd "$DIR/Build/"
$DIR/Tarballs/gcc-8.3.0/configure --prefix=$PREFIX \
--target=$TARGET \
--with-sysroot=$SYSROOT \
--disable-nls \
--with-newlib \
--enable-languages=c,c++ || exit 1

make -j $(nproc) all-gcc all-target-libgcc
Expand All @@ -79,4 +81,5 @@ pushd "$DIR/Build/"
make all-target-libstdc++-v3
make install-target-libstdc++-v3
popd
popd
popd

0 comments on commit 02b69cf

Please sign in to comment.