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