diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-03-26 15:19:11 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2019-03-29 23:05:45 -0400 |
commit | 6c1bf6a591f554a87b91a3d91f7a1c20536f0d71 (patch) | |
tree | b0285a2605eca8735ac547d0ad5db25cf5d9d4d4 | |
parent | 7a6fb65bd9fa8097ccecb2d522a20c2e2ecf0055 (diff) | |
download | servo-6c1bf6a591f554a87b91a3d91f7a1c20536f0d71.tar.gz servo-6c1bf6a591f554a87b91a3d91f7a1c20536f0d71.zip |
Add linking hack to work around older libunwind package versions.
-rw-r--r-- | components/background_hang_monitor/sampler_linux.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/background_hang_monitor/sampler_linux.rs b/components/background_hang_monitor/sampler_linux.rs index e57e2ea9fc7..5d981570a1d 100644 --- a/components/background_hang_monitor/sampler_linux.rs +++ b/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, |