--- a/src/meson.build
+++ b/src/meson.build
@@ -60,6 +60,7 @@ libdex_headers = [
 
 libdex_deps = [
   cc.find_library('atomic', required: false),
+  cc.find_library('ucontext', required: false),
   glib_dep,
 ]
 
