diff --git a/build-linux.sh b/build-linux.sh index 4a0d950..29b4e1a 100755 --- a/build-linux.sh +++ b/build-linux.sh @@ -76,6 +76,7 @@ binutils_build() --disable-multilib \ --disable-nls \ --disable-werror \ + --enable-gold \ --enable-lto \ --enable-plugins make -j${CORES} diff --git a/patches/binutils/binutils-2_35/001-enable-gold-on-mingw32.patch b/patches/binutils/binutils-2_35/001-enable-gold-on-mingw32.patch new file mode 100644 index 0000000..f0d4afa --- /dev/null +++ b/patches/binutils/binutils-2_35/001-enable-gold-on-mingw32.patch @@ -0,0 +1,36 @@ +Though GOLD is not yet enabled for TDM-GCC, this patch will help + +From: J.M. Eubank + +From + +--- + 0 files changed + +diff --git a/configure b/configure +index 6a9719f6..f07a3b7f 100755 +--- a/configure ++++ b/configure +@@ -3001,6 +3001,7 @@ case "${ENABLE_GOLD}" in + yes|default) + # Check for ELF target. + is_elf=no ++ is_pe=no + case "${target}" in + *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ + | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ +@@ -3012,10 +3013,12 @@ case "${ENABLE_GOLD}" in + *) + is_elf=yes + ;; +- esac ++ esac;; ++ *-*-mingw*) ++ is_pe=yes;; + esac + +- if test "$is_elf" = "yes"; then ++ if test "$is_elf" = "yes" -o "$is_pe" = "yes"; then + # Check for target supported by gold. + case "${target}" in + i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \