aboutsummaryrefslogtreecommitdiffstats
path: root/testing/capnproto/ucontext.patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2021-02-04 17:44:50 +0100
committerLeo <thinkabit.ukim@gmail.com>2021-02-04 19:35:24 +0000
commitbb2d67b2ae3a68632533dfcd39754fa80666899d (patch)
tree40331abadbd1ff0ec8e9b439942c8b2178f9d77b /testing/capnproto/ucontext.patch
parenta9bc78c8fdfdf7a0ec4545306e81152f9ff9e65e (diff)
downloadaports-bb2d67b2ae3a68632533dfcd39754fa80666899d.tar.gz
aports-bb2d67b2ae3a68632533dfcd39754fa80666899d.tar.bz2
aports-bb2d67b2ae3a68632533dfcd39754fa80666899d.tar.xz
testing/capnproto: upgrade to 0.8.0
Diffstat (limited to 'testing/capnproto/ucontext.patch')
-rw-r--r--testing/capnproto/ucontext.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/capnproto/ucontext.patch b/testing/capnproto/ucontext.patch
new file mode 100644
index 0000000000..e968a6500f
--- /dev/null
+++ b/testing/capnproto/ucontext.patch
@@ -0,0 +1,16 @@
+makecontext, swapcontext, … are not provided on musl as there are no
+longer mandated by POSIX. Instead, these functions are available via a
+separately library (libucontext), however, we need to link explicitly
+against this.
+
+diff -upr capnproto-c++-0.8.0.orig/src/kj/CMakeLists.txt capnproto-c++-0.8.0/src/kj/CMakeLists.txt
+--- capnproto-c++-0.8.0.orig/src/kj/CMakeLists.txt 2021-02-04 19:39:00.666936799 +0100
++++ capnproto-c++-0.8.0/src/kj/CMakeLists.txt 2021-02-04 19:39:27.560397981 +0100
+@@ -74,6 +74,7 @@ add_library(CapnProto::kj ALIAS kj)
+ # TODO(cleanup): Use cxx_std_14 once it's safe to require cmake 3.8.
+ target_compile_features(kj PUBLIC cxx_generic_lambdas)
+
++target_link_libraries(kj PUBLIC ucontext)
+ if(UNIX AND NOT ANDROID)
+ target_link_libraries(kj PUBLIC pthread)
+ endif()