mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-03-26 03:59:06 +08:00
libbacktrace: test linker support for DWARF 5
On AIX, the compiler supports DWARF 5 but the linker does not. 2020-07-07 Clement Chigot <clement.chigot@atos.net> * configure.ac: Test linker support for DWARF5 * configure: Regenerate
This commit is contained in:
@@ -461,12 +461,12 @@ AC_SUBST(PTHREAD_CFLAGS)
|
||||
|
||||
AM_CONDITIONAL(HAVE_PTHREAD, test "$libgo_cv_lib_pthread" = yes)
|
||||
|
||||
dnl Test whether the compiler supports the -gdwarf-5 option.
|
||||
dnl Test whether the compiler and the linker support the -gdwarf-5 option.
|
||||
AC_CACHE_CHECK([whether -gdwarf-5 is supported],
|
||||
[libbacktrace_cv_lib_dwarf5],
|
||||
[CFLAGS_hold=$CFLAGS
|
||||
CFLAGS="$CFLAGS -gdwarf-5"
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([int i;])],
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([int i;], [return 0;])],
|
||||
[libbacktrace_cv_lib_dwarf5=yes],
|
||||
[libbacktrace_cv_lib_dwarf5=no])
|
||||
CFLAGS=$CFLAGS_hold])
|
||||
|
||||
Reference in New Issue
Block a user