|
|
f8cceb |
diff -rup binutils.orig/configure binutils-2.30/configure
|
|
|
f8cceb |
--- binutils.orig/configure 2018-09-24 17:50:06.967172922 +0100
|
|
|
f8cceb |
+++ binutils-2.30/configure 2018-09-24 17:51:16.648624865 +0100
|
|
|
f8cceb |
@@ -4996,49 +4996,6 @@ if test -z "$LD"; then
|
|
|
f8cceb |
fi
|
|
|
f8cceb |
fi
|
|
|
f8cceb |
|
|
|
f8cceb |
-# Check whether -static-libstdc++ -static-libgcc is supported.
|
|
|
f8cceb |
-have_static_libs=no
|
|
|
f8cceb |
-if test "$GCC" = yes; then
|
|
|
f8cceb |
- saved_LDFLAGS="$LDFLAGS"
|
|
|
f8cceb |
-
|
|
|
f8cceb |
- LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
|
|
|
f8cceb |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
|
|
|
f8cceb |
-$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
|
|
|
f8cceb |
- ac_ext=cpp
|
|
|
f8cceb |
-ac_cpp='$CXXCPP $CPPFLAGS'
|
|
|
f8cceb |
-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
f8cceb |
-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
f8cceb |
-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|
|
f8cceb |
-
|
|
|
f8cceb |
-
|
|
|
f8cceb |
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
f8cceb |
-/* end confdefs.h. */
|
|
|
f8cceb |
-
|
|
|
f8cceb |
-#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
|
|
|
f8cceb |
-#error -static-libstdc++ not implemented
|
|
|
f8cceb |
-#endif
|
|
|
f8cceb |
-int main() {}
|
|
|
f8cceb |
-_ACEOF
|
|
|
f8cceb |
-if ac_fn_cxx_try_link "$LINENO"; then :
|
|
|
f8cceb |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
f8cceb |
-$as_echo "yes" >&6; }; have_static_libs=yes
|
|
|
f8cceb |
-else
|
|
|
f8cceb |
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
f8cceb |
-$as_echo "no" >&6; }
|
|
|
f8cceb |
-fi
|
|
|
f8cceb |
-rm -f core conftest.err conftest.$ac_objext \
|
|
|
f8cceb |
- conftest$ac_exeext conftest.$ac_ext
|
|
|
f8cceb |
- ac_ext=c
|
|
|
f8cceb |
-ac_cpp='$CPP $CPPFLAGS'
|
|
|
f8cceb |
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
f8cceb |
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
f8cceb |
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
f8cceb |
-
|
|
|
f8cceb |
-
|
|
|
f8cceb |
- LDFLAGS="$saved_LDFLAGS"
|
|
|
f8cceb |
-fi
|
|
|
f8cceb |
-
|
|
|
f8cceb |
-
|
|
|
f8cceb |
|
|
|
f8cceb |
|
|
|
f8cceb |
if test -n "$ac_tool_prefix"; then
|
|
|
f8cceb |
diff -rup binutils.orig/configure.ac binutils-2.30/configure.ac
|
|
|
f8cceb |
--- binutils.orig/configure.ac 2018-09-24 17:50:07.241170767 +0100
|
|
|
f8cceb |
+++ binutils-2.30/configure.ac 2018-09-24 17:50:29.908992486 +0100
|
|
|
f8cceb |
@@ -1288,26 +1288,6 @@ if test -z "$LD"; then
|
|
|
f8cceb |
fi
|
|
|
f8cceb |
fi
|
|
|
f8cceb |
|
|
|
f8cceb |
-# Check whether -static-libstdc++ -static-libgcc is supported.
|
|
|
f8cceb |
-have_static_libs=no
|
|
|
f8cceb |
-if test "$GCC" = yes; then
|
|
|
f8cceb |
- saved_LDFLAGS="$LDFLAGS"
|
|
|
f8cceb |
-
|
|
|
f8cceb |
- LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
|
|
|
f8cceb |
- AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc])
|
|
|
f8cceb |
- AC_LANG_PUSH(C++)
|
|
|
f8cceb |
- AC_LINK_IFELSE([AC_LANG_SOURCE([
|
|
|
f8cceb |
-#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
|
|
|
f8cceb |
-#error -static-libstdc++ not implemented
|
|
|
f8cceb |
-#endif
|
|
|
f8cceb |
-int main() {}])],
|
|
|
f8cceb |
- [AC_MSG_RESULT([yes]); have_static_libs=yes],
|
|
|
f8cceb |
- [AC_MSG_RESULT([no])])
|
|
|
f8cceb |
- AC_LANG_POP(C++)
|
|
|
f8cceb |
-
|
|
|
f8cceb |
- LDFLAGS="$saved_LDFLAGS"
|
|
|
f8cceb |
-fi
|
|
|
f8cceb |
-
|
|
|
f8cceb |
ACX_PROG_GNAT
|
|
|
f8cceb |
ACX_PROG_CMP_IGNORE_INITIAL
|
|
|
f8cceb |
|