3063ad6
diff -rup binutils.orig/configure binutils-2.40/configure
3063ad6
--- binutils.orig/configure	2023-02-13 14:43:00.728877170 +0000
3063ad6
+++ binutils-2.40/configure	2023-02-13 14:43:13.671864892 +0000
3063ad6
@@ -5442,49 +5442,6 @@ if test -z "$LD"; then
4b7c783
   fi
4b7c783
 fi
4b7c783
 
4b7c783
-# Check whether -static-libstdc++ -static-libgcc is supported.
4b7c783
-have_static_libs=no
4b7c783
-if test "$GCC" = yes; then
4b7c783
-  saved_LDFLAGS="$LDFLAGS"
4b7c783
-
4b7c783
-  LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4b7c783
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4b7c783
-$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4b7c783
-  ac_ext=cpp
4b7c783
-ac_cpp='$CXXCPP $CPPFLAGS'
4b7c783
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4b7c783
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4b7c783
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4b7c783
-
4b7c783
-
4b7c783
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4b7c783
-/* end confdefs.h.  */
4b7c783
-
4b7c783
-#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4b7c783
-#error -static-libstdc++ not implemented
4b7c783
-#endif
4b7c783
-int main() {}
4b7c783
-_ACEOF
4b7c783
-if ac_fn_cxx_try_link "$LINENO"; then :
4b7c783
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4b7c783
-$as_echo "yes" >&6; }; have_static_libs=yes
4b7c783
-else
4b7c783
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4b7c783
-$as_echo "no" >&6; }
4b7c783
-fi
4b7c783
-rm -f core conftest.err conftest.$ac_objext \
4b7c783
-    conftest$ac_exeext conftest.$ac_ext
4b7c783
-  ac_ext=c
4b7c783
-ac_cpp='$CPP $CPPFLAGS'
4b7c783
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4b7c783
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4b7c783
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
4b7c783
-
4b7c783
-
4b7c783
-  LDFLAGS="$saved_LDFLAGS"
4b7c783
-fi
4b7c783
-
4b7c783
-
4b7c783
 
4b7c783
 
4b7c783
 if test -n "$ac_tool_prefix"; then
3063ad6
diff -rup binutils.orig/configure.ac binutils-2.40/configure.ac
3063ad6
--- binutils.orig/configure.ac	2023-02-13 14:43:00.728877170 +0000
3063ad6
+++ binutils-2.40/configure.ac	2023-02-13 14:43:13.671864892 +0000
3063ad6
@@ -1435,26 +1435,6 @@ if test -z "$LD"; then
4b7c783
   fi
4b7c783
 fi
4b7c783
 
4b7c783
-# Check whether -static-libstdc++ -static-libgcc is supported.
4b7c783
-have_static_libs=no
4b7c783
-if test "$GCC" = yes; then
4b7c783
-  saved_LDFLAGS="$LDFLAGS"
4b7c783
-
4b7c783
-  LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4b7c783
-  AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc])
4b7c783
-  AC_LANG_PUSH(C++)
4b7c783
-  AC_LINK_IFELSE([AC_LANG_SOURCE([
4b7c783
-#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4b7c783
-#error -static-libstdc++ not implemented
4b7c783
-#endif
4b7c783
-int main() {}])],
4b7c783
-    [AC_MSG_RESULT([yes]); have_static_libs=yes],
4b7c783
-    [AC_MSG_RESULT([no])])
4b7c783
-  AC_LANG_POP(C++)
4b7c783
-
4b7c783
-  LDFLAGS="$saved_LDFLAGS"
4b7c783
-fi
4b7c783
-
4b7c783
 ACX_PROG_GNAT
3063ad6
 ACX_PROG_GDC
4b7c783
 ACX_PROG_CMP_IGNORE_INITIAL
3063ad6
Only in binutils-2.40: configure.ac.orig
3063ad6
Only in binutils-2.40: configure.orig