patch-gdb_configure 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. --- gdb-8.0.orig/gdb/configure 2017-06-04 17:54:54.000000000 +0200
  2. +++ gdb-8.0/gdb/configure 2017-06-20 22:54:16.961589341 +0200
  3. @@ -14547,93 +14547,6 @@ $as_echo "$gdb_cv_bigtoc" >&6; }
  4. ;;
  5. esac
  6. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
  7. -$as_echo_n "checking for the dynamic export flag... " >&6; }
  8. -dynamic_list=false
  9. -if test "${gdb_native}" = yes; then
  10. - # The dynamically loaded libthread_db needs access to symbols in the gdb
  11. - # executable. Older GNU ld supports --export-dynamic but --dynamic-list
  12. - # may not be supported there.
  13. - old_LDFLAGS="$LDFLAGS"
  14. - # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
  15. - RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
  16. - LDFLAGS="$LDFLAGS $RDYNAMIC"
  17. - if test "${have_libpython}" = no; then
  18. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19. -/* end confdefs.h. */
  20. -
  21. -int
  22. -main ()
  23. -{
  24. -
  25. - ;
  26. - return 0;
  27. -}
  28. -_ACEOF
  29. -if ac_fn_c_try_link "$LINENO"; then :
  30. - dynamic_list=true
  31. -fi
  32. -rm -f core conftest.err conftest.$ac_objext \
  33. - conftest$ac_exeext conftest.$ac_ext
  34. - else
  35. - # Workaround http://bugs.python.org/issue4434 where static
  36. - # libpythonX.Y.a would get its symbols required for
  37. - # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
  38. - # Problem does not happen for the recommended libpythonX.Y.so linkage.
  39. -
  40. - # Note the workaround for Python
  41. - # http://bugs.python.org/issue10112 earlier has removed
  42. - # -export-dynamic from PYTHON_LIBS. That's exactly what we want
  43. - # here too, as otherwise it'd make this -Wl,--dynamic-list test
  44. - # always pass.
  45. - old_CFLAGS="$CFLAGS"
  46. - CFLAGS="$CFLAGS $PYTHON_CFLAGS"
  47. - old_LIBS="$LIBS"
  48. - LIBS="$LIBS $PYTHON_LIBS"
  49. - old_CPPFLAGS="$CPPFLAGS"
  50. - CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
  51. - if test "$cross_compiling" = yes; then :
  52. - true
  53. -else
  54. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55. -/* end confdefs.h. */
  56. -#include "Python.h"
  57. -int
  58. -main ()
  59. -{
  60. -int err;
  61. - Py_Initialize ();
  62. - err = PyRun_SimpleString ("import itertools\n");
  63. - Py_Finalize ();
  64. - return err == 0 ? 0 : 1;
  65. - ;
  66. - return 0;
  67. -}
  68. -_ACEOF
  69. -if ac_fn_c_try_run "$LINENO"; then :
  70. - dynamic_list=true
  71. -fi
  72. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  73. - conftest.$ac_objext conftest.beam conftest.$ac_ext
  74. -fi
  75. -
  76. - LIBS="$old_LIBS"
  77. - CFLAGS="$old_CFLAGS"
  78. - CPPFLAGS="$old_CPPFLAGS"
  79. - fi
  80. - LDFLAGS="$old_LDFLAGS"
  81. -fi
  82. -if $dynamic_list; then
  83. - found="-Wl,--dynamic-list"
  84. - RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
  85. -else
  86. - found="-rdynamic"
  87. - RDYNAMIC="-rdynamic"
  88. -fi
  89. -
  90. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
  91. -$as_echo "$found" >&6; }
  92. -
  93. if test ${build} = ${host} -a ${host} = ${target} ; then
  94. case ${host_os} in