aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Schwarz <zeranoe@gmail.com>2020-08-05 13:22:25 -0400
committerKyle Schwarz <zeranoe@gmail.com>2020-08-05 13:22:25 -0400
commit0dffee72de8ad4100925831d5afefad058455126 (patch)
tree30aeae5c64b264d65943fd756f35e01ad7233112
parent0d4b98a1ca8ab52f45ce162ff64cd33f7c3f250f (diff)
Bash doesn't need variables defined
-rwxr-xr-xmingw-w64-build9
1 files changed, 4 insertions, 5 deletions
diff --git a/mingw-w64-build b/mingw-w64-build
index dc7a84f..2679784 100755
--- a/mingw-w64-build
+++ b/mingw-w64-build
@@ -121,11 +121,14 @@ build_toolchain()
local prefix="$wd/$host"
export PATH="$prefix/bin:$PATH"
- i686_dwarf2=""
if [[ "$1" = "i686" ]]; then
i686_dwarf2="--disable-sjlj-exceptions --with-dwarf2"
fi
+ if [[ "$pthreads" = true ]]; then
+ enable_threads="--enable-threads=posix"
+ fi
+
rm -fr "$prefix"
clean_build "$bld/binutils"
@@ -147,10 +150,6 @@ build_toolchain()
cd "$prefix" || error_exit
ln -s "./$host" "./mingw" || error_exit
- if [[ "$pthreads" = true ]]; then
- enable_threads="--enable-threads=posix"
- fi
-
clean_build "$bld/gcc"
echo "configuring gcc" >&3
"../../src/gcc-$v_gcc/configure" --target="$host" --disable-shared \