From 3b07c0e5e45a5594e9929adf898736af7b6839da Mon Sep 17 00:00:00 2001 From: Denis Khalikov Date: Wed, 13 Jun 2018 19:51:42 +0000 Subject: [PATCH] re PR sanitizer/86090 ([ASAN] ASAN does not properly configure libbacktrace.) 2018-06-13 Denis Khalikov libsanitizer/ PR sanitizer/86090 * configure.ac: Check for lstat and readlink. * configure, config.h.in: Rebuild. From-SVN: r261564 --- libsanitizer/ChangeLog | 6 ++++++ libsanitizer/config.h.in | 6 ++++++ libsanitizer/configure | 2 +- libsanitizer/configure.ac | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index 43eb1debe6f..8a1f74ba079 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,9 @@ +2018-06-13 Denis Khalikov + + PR sanitizer/86090 + * configure.ac: Check for lstat and readlink. + * configure, config.h.in: Rebuild. + 2018-05-31 Matthias Klose PR sanitizer/86012 diff --git a/libsanitizer/config.h.in b/libsanitizer/config.h.in index 7195840f2db..f716c2421cf 100644 --- a/libsanitizer/config.h.in +++ b/libsanitizer/config.h.in @@ -43,6 +43,12 @@ /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H +/* Define to 1 if you have the `lstat' function. */ +#undef HAVE_LSTAT + +/* Define to 1 if you have the `readlink' function. */ +#undef HAVE_READLINK + /* Define to 1 if you have the header file. */ #undef HAVE_RPC_XDR_H diff --git a/libsanitizer/configure b/libsanitizer/configure index 4695bc7d4f7..5836450063d 100755 --- a/libsanitizer/configure +++ b/libsanitizer/configure @@ -15509,7 +15509,7 @@ fi # Check for functions needed. -for ac_func in clock_getres clock_gettime clock_settime +for ac_func in clock_getres clock_gettime clock_settime lstat readlink do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" diff --git a/libsanitizer/configure.ac b/libsanitizer/configure.ac index 0d11afd1948..34ba09f42f2 100644 --- a/libsanitizer/configure.ac +++ b/libsanitizer/configure.ac @@ -93,7 +93,7 @@ AM_CONDITIONAL(TSAN_SUPPORTED, [test "x$TSAN_SUPPORTED" = "xyes"]) AM_CONDITIONAL(LSAN_SUPPORTED, [test "x$LSAN_SUPPORTED" = "xyes"]) # Check for functions needed. -AC_CHECK_FUNCS(clock_getres clock_gettime clock_settime) +AC_CHECK_FUNCS(clock_getres clock_gettime clock_settime lstat readlink) # Common libraries that we need to link against for all sanitizer libs. link_sanitizer_common='-lpthread -lm' -- 2.30.2