ruby-changes:70943
From: Yuta <ko1@a...>
Date: Wed, 19 Jan 2022 11:19:24 +0900 (JST)
Subject: [ruby-changes:70943] e41b121e94 (master): [wasm] configure.ac: setup platform specific libraries
https://git.ruby-lang.org/ruby.git/commit/?id=e41b121e94 From e41b121e94ccce9877824e55f865885bbabe40c3 Mon Sep 17 00:00:00 2001 From: Yuta Saito <kateinoigakukun@g...> Date: Sun, 16 Jan 2022 02:34:43 +0900 Subject: [wasm] configure.ac: setup platform specific libraries These flags are very wasi-libc version specific, so updating wasi-libc may break the build. But supporting multiple wasi-libc versions in ruby doesn't have much benefit because wasi-libc is not installed in most systems. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 840fa110a37..f0f3bab5704 100644 --- a/configure.ac +++ b/configure.ac @@ -1215,6 +1215,10 @@ main() https://github.com/ruby/ruby/blob/trunk/configure.ac#L1215 RUBY_APPEND_OPTIONS(LDFLAGS, "-sFORCE_FILESYSTEM=1") ac_cv_func_shutdown=no ], +[wasi*],[ LIBS="-lm -lwasi-emulated-mman -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks $LIBS" + RUBY_APPEND_OPTIONS(CFLAGS, -D_WASI_EMULATED_SIGNAL -D_WASI_EMULATED_MMAN -D_WASI_EMULATED_GETPID -D_WASI_EMULATED_PROCESS_CLOCKS) + RUBY_APPEND_OPTIONS(CPPFLAGS, -D_WASI_EMULATED_SIGNAL -D_WASI_EMULATED_MMAN -D_WASI_EMULATED_GETPID -D_WASI_EMULATED_PROCESS_CLOCKS) + ] [ LIBS="-lm $LIBS"]) : ${ORIG_LIBS=$LIBS} -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/