aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Schwarz <zeranoe@gmail.com>2023-01-29 22:00:46 -0500
committerKyle Schwarz <zeranoe@gmail.com>2023-01-29 22:00:46 -0500
commitd0e3b943e1bbaef84a6efb61d8ececf88ed6839d (patch)
treed79f8f764925eaab8e926a7c4833d4c713cd52b5
parent27de94ed0622423dea087002846d7a6f6994e22d (diff)
Update binutils to binutils-2_40-branch
-rw-r--r--README.md2
-rwxr-xr-xmingw-w64-build6
2 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index ab13bd2..12323e8 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ files.
## Default Branches
* [MinGW-w64](https://mingw-w64.org) v9.x
-* [Binutils](https://www.gnu.org/software/binutils/) binutils-2_39-branch
+* [Binutils](https://www.gnu.org/software/binutils/) binutils-2_40-branch
* [GCC](https://gcc.gnu.org/) releases/gcc-12
## Default Prefix
diff --git a/mingw-w64-build b/mingw-w64-build
index bff82aa..eaf62e9 100755
--- a/mingw-w64-build
+++ b/mingw-w64-build
@@ -19,7 +19,7 @@
ROOT_PATH="$HOME/.zeranoe/mingw-w64"
MINGW_W64_BRANCH="v9.x"
-BINUTILS_BRANCH="binutils-2_39-branch"
+BINUTILS_BRANCH="binutils-2_40-branch"
GCC_BRANCH="releases/gcc-12"
ENABLE_THREADS="--enable-threads=posix"
@@ -445,6 +445,10 @@ change_dir "$SRC_PATH/gcc"
execute "" "failed to download GCC dependencies" \
./contrib/download_prerequisites
+for i in mpc isl mpfr gmp; do
+ ln -s "$SRC_PATH/gcc/$i" "$SRC_PATH/binutils/$i"
+done
+
export CFLAGS="-g0"
export CXXFLAGS="-g0"
export LDFLAGS="-s"