Skip to content

Commit

Permalink
Fixes tj90241#21 - libgcc.a should be built with the compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPVille committed Aug 21, 2020
1 parent 7a95d97 commit 0221b1e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/build-posix64-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ if [ ! -f stamps/gcc-build ]; then
touch stamps/gcc-build
fi

if [ ! -f stamps/libgcc-build ]; then
pushd gcc-build
make all-target-libgcc CFLAGS_FOR_TARGET='-g -O2 -mabi=32' -j${numproc}
popd

touch stamps/libgcc-build
fi

if [ ! -f stamps/gcc-install ]; then
pushd gcc-build
make install-gcc
Expand All @@ -145,6 +153,14 @@ if [ ! -f stamps/gcc-install ]; then
touch stamps/gcc-install
fi

if [ ! -f stamps/libgcc-install ]; then
pushd gcc-build
make install-target-libgcc
popd

touch stamps/libgcc-install
fi

if [ ! -f stamps/make-download ]; then
wget "${MAKE}" -O "tarballs/$(basename ${MAKE})"
touch stamps/make-download
Expand Down
16 changes: 16 additions & 0 deletions tools/build-win64-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ if [ ! -f stamps/gcc-build ]; then
touch stamps/gcc-build
fi

if [ ! -f stamps/libgcc-build ]; then
pushd gcc-build
make all-target-libgcc CFLAGS_FOR_TARGET='-g -O2 -mabi=32'
popd

touch stamps/libgcc-build
fi

if [ ! -f stamps/gcc-install ]; then
pushd gcc-build
make install-gcc
Expand All @@ -176,6 +184,14 @@ if [ ! -f stamps/gcc-install ]; then
touch stamps/gcc-install
fi

if [ ! -f stamps/libgcc-install ]; then
pushd gcc-build
make install-target-libgcc
popd

touch stamps/libgcc-install
fi

if [ ! -f stamps/make-download ]; then
wget "${MAKE}" -O "tarballs/$(basename ${MAKE})"
touch stamps/make-download
Expand Down

0 comments on commit 0221b1e

Please sign in to comment.