mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Link zlib always if available
Major Linux distribution packages including Debian, Ubuntu, and Fedora use `--compress-debug-sections=no` to build ruby, and then extract and compress debug symbols as separate files. However, the configure option makes ruby not link zlib, thus the generated binary cannot uncompress the compressed separate debug symbol files, and fails to show C level backtrace when a critical error like segfault occurs. This change makes ruby always link zlib if it is available so that it can show C level backtrace correctly. Related: Debian packages require https://github.com/ruby/ruby/pull/3627 to load debug symbol files.
This commit is contained in:
parent
288e93bea8
commit
8c5ec10038
Notes:
git
2020-12-11 14:09:08 +09:00
1 changed files with 1 additions and 3 deletions
|
@ -2739,9 +2739,7 @@ AS_IF([test "$rb_cv_binary_elf" = yes], [
|
||||||
AC_CHECK_HEADERS([elf.h elf_abi.h])
|
AC_CHECK_HEADERS([elf.h elf_abi.h])
|
||||||
AS_IF([test $ac_cv_header_elf_h = yes -o $ac_cv_header_elf_abi_h = yes], [
|
AS_IF([test $ac_cv_header_elf_h = yes -o $ac_cv_header_elf_abi_h = yes], [
|
||||||
AC_LIBOBJ([addr2line])
|
AC_LIBOBJ([addr2line])
|
||||||
AS_IF([test "x$compress_debug_sections" = xzlib], [
|
AC_CHECK_LIB([z], [uncompress])
|
||||||
AC_CHECK_LIB([z], [uncompress])
|
|
||||||
])
|
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue