Skip to content
Permalink
Browse files

Add linking hack to work around older libunwind package versions.

  • Loading branch information...
jdm committed Mar 26, 2019
1 parent 7a6fb65 commit 6c1bf6a591f554a87b91a3d91f7a1c20536f0d71
Showing with 5 additions and 0 deletions.
  1. +5 −0 components/background_hang_monitor/sampler_linux.rs
@@ -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,

0 comments on commit 6c1bf6a

Please sign in to comment.
You can’t perform that action at this time.