Add linking hack to work around older libunwind package versions.

This commit is contained in:
Josh Matthews 2019-03-26 15:19:11 -04:00
parent 7a6fb65bd9
commit 6c1bf6a591

View file

@ -18,6 +18,11 @@ use unwind_sys::{
unw_cursor_t, unw_get_reg, unw_init_local, unw_step, UNW_ESUCCESS, UNW_REG_IP, UNW_REG_SP,
};
// Hack to workaround broken libunwind pkg-config contents for <1.1-3ubuntu.1.
// https://bugs.launchpad.net/ubuntu/+source/libunwind/+bug/1336912
#[link(name = "lzma")]
extern "C" {}
static mut SHARED_STATE: SharedState = SharedState {
msg2: None,
msg3: None,