There was an error while loading. Please reload this page.
-ldl
1 parent 6677c2c commit af3f6fcCopy full SHA for af3f6fc
3 files changed
Python/traceback.c
@@ -33,9 +33,9 @@
33
#ifdef HAVE_LINK_H
34
# include <link.h> // struct DL_info
35
#endif
36
-# if defined(__APPLE__) && defined(HAVE_BACKTRACE) && defined(HAVE_BACKTRACE_SYMBOLS) && defined(HAVE_DLADDR)
+# if defined(__APPLE__) && defined(HAVE_BACKTRACE) && defined(HAVE_DLADDR)
37
# define CAN_C_BACKTRACE
38
-# elif defined(HAVE_BACKTRACE) && defined(HAVE_BACKTRACE_SYMBOLS) && defined(HAVE_DLADDR1)
+# elif defined(HAVE_BACKTRACE) && defined(HAVE_DLADDR1)
39
40
# endif
41
configure
configure.ac
@@ -2989,9 +2989,10 @@ AC_HEADER_MAJOR
2989
AC_CHECK_HEADERS([execinfo.h link.h dlfcn.h], [
2990
AC_CHECK_FUNCS([backtrace dladdr1], [
2991
# dladdr1 requires -ldl
2992
- AS_VAR_APPEND([LDFLAGS], [" -ldl"])
+ ac_cv_require_ldl=yes
2993
])
2994
2995
+AS_VAR_IF([ac_cv_require_ldl], [yes], [AS_VAR_APPEND([LDFLAGS], [" -ldl"])])
2996
2997
# bluetooth/bluetooth.h has been known to not compile with -std=c99.
2998
# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
0 commit comments