Blame SOURCES/binutils-do-not-link-with-static-libstdc++.patch

82154a
diff -rupN --no-dereference binutils-2.39/configure binutils-2.39-new/configure
82154a
--- binutils-2.39/configure	2022-07-08 11:55:40.000000000 +0200
82154a
+++ binutils-2.39-new/configure	2022-10-30 12:41:28.785023757 +0100
82154a
@@ -5276,49 +5276,6 @@ if test -z "$LD"; then
e89428
   fi
e89428
 fi
e89428
 
e89428
-# Check whether -static-libstdc++ -static-libgcc is supported.
e89428
-have_static_libs=no
e89428
-if test "$GCC" = yes; then
e89428
-  saved_LDFLAGS="$LDFLAGS"
e89428
-
e89428
-  LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
e89428
-  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
e89428
-$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
e89428
-  ac_ext=cpp
e89428
-ac_cpp='$CXXCPP $CPPFLAGS'
e89428
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
e89428
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
e89428
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
e89428
-
e89428
-
e89428
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e89428
-/* end confdefs.h.  */
e89428
-
e89428
-#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
e89428
-#error -static-libstdc++ not implemented
e89428
-#endif
e89428
-int main() {}
e89428
-_ACEOF
e89428
-if ac_fn_cxx_try_link "$LINENO"; then :
e89428
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
e89428
-$as_echo "yes" >&6; }; have_static_libs=yes
e89428
-else
e89428
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e89428
-$as_echo "no" >&6; }
e89428
-fi
e89428
-rm -f core conftest.err conftest.$ac_objext \
e89428
-    conftest$ac_exeext conftest.$ac_ext
e89428
-  ac_ext=c
e89428
-ac_cpp='$CPP $CPPFLAGS'
e89428
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
e89428
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
e89428
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
e89428
-
e89428
-
e89428
-  LDFLAGS="$saved_LDFLAGS"
e89428
-fi
e89428
-
e89428
-
e89428
 
e89428
 
e89428
 if test -n "$ac_tool_prefix"; then
82154a
diff -rupN --no-dereference binutils-2.39/configure.ac binutils-2.39-new/configure.ac
82154a
--- binutils-2.39/configure.ac	2022-08-05 13:02:04.000000000 +0200
82154a
+++ binutils-2.39-new/configure.ac	2022-10-30 12:41:28.786023757 +0100
82154a
@@ -1314,26 +1314,6 @@ if test -z "$LD"; then
e89428
   fi
e89428
 fi
e89428
 
e89428
-# Check whether -static-libstdc++ -static-libgcc is supported.
e89428
-have_static_libs=no
e89428
-if test "$GCC" = yes; then
e89428
-  saved_LDFLAGS="$LDFLAGS"
e89428
-
e89428
-  LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
e89428
-  AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc])
e89428
-  AC_LANG_PUSH(C++)
e89428
-  AC_LINK_IFELSE([AC_LANG_SOURCE([
e89428
-#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
e89428
-#error -static-libstdc++ not implemented
e89428
-#endif
e89428
-int main() {}])],
e89428
-    [AC_MSG_RESULT([yes]); have_static_libs=yes],
e89428
-    [AC_MSG_RESULT([no])])
e89428
-  AC_LANG_POP(C++)
e89428
-
e89428
-  LDFLAGS="$saved_LDFLAGS"
e89428
-fi
e89428
-
e89428
 ACX_PROG_GNAT
e89428
 ACX_PROG_CMP_IGNORE_INITIAL
e89428