diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-11 10:54:06 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-11 14:08:23 +0900 |
commit | 8c5ec10038a9bbc328eeb3756da207ba5976072d (patch) | |
tree | d7ffe32722763de1cc27cae93ebd4235c7953303 /addr2line.c | |
parent | 288e93bea872e99ccf706294dc63b8a2b139ea2c (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3884
Diffstat (limited to 'addr2line.c')
0 files changed, 0 insertions, 0 deletions