aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Schwarz <zeranoe@gmail.com>2021-09-18 20:43:24 -0400
committerKyle Schwarz <zeranoe@gmail.com>2021-09-18 20:43:24 -0400
commita827158c818e4406e98e533d8e37f6b21bf90060 (patch)
tree5c47337ae72af6a76e9b38780c461f9fb866cb40
parent6d4c88e467454e06e416fec35032869fea29a2e1 (diff)
Only build target arch CRT libs
-rwxr-xr-xmingw-w64-build5
1 files changed, 4 insertions, 1 deletions
diff --git a/mingw-w64-build b/mingw-w64-build
index 99cdd61..c908179 100755
--- a/mingw-w64-build
+++ b/mingw-w64-build
@@ -161,6 +161,9 @@ build()
if [ "$arch" = "i686" ]; then
local i686_dwarf2="--disable-sjlj-exceptions --with-dwarf2"
+ local crt_lib="--enable-lib32 --disable-lib64"
+ else
+ local crt_lib="--enable-lib64 --disable-lib32"
fi
create_dir "$bld_path/binutils"
@@ -207,7 +210,7 @@ build()
execute "($arch): configuring MinGW-w64 CRT" "" \
"$SRC_PATH/mingw-w64/mingw-w64-crt/configure" --build="$BUILD" \
--host="$host" --prefix="$prefix/$host" \
- --with-sysroot="$prefix/$host"
+ --with-sysroot="$prefix/$host" $crt_lib
execute "($arch): building MinGW-w64 CRT" "" \
make -j $JOB_COUNT