From 94b7c5ec3faf8bda358194b275b7b39be9464b13 Mon Sep 17 00:00:00 2001 From: Victor Polevoy Date: Fri, 22 Apr 2022 16:25:45 +0200 Subject: [PATCH] Enable shared memory for emscripten test. --- libc-test/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index 27ead960def1c..affd423d92871 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2444,7 +2444,8 @@ fn test_emscripten(target: &str) { let mut cfg = ctest_cfg(); cfg.define("_GNU_SOURCE", None); // FIXME: ?? - cfg.flag("-pthread"); // Enable POSIX threads support. + cfg.flag("-pthread"); + cfg.flag("-Wl,--shared-memory"); headers! { cfg: "aio.h",