ruby-changes:65014
From: Yusuke <ko1@a...>
Date: Sat, 23 Jan 2021 16:08:45 +0900 (JST)
Subject: [ruby-changes:65014] f12c33b611 (master): configure.ac: Add some compiler options for emscripten
https://git.ruby-lang.org/ruby.git/commit/?id=f12c33b611 From f12c33b6112b38f51ae1813b19f4c331ede2af2e Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sat, 23 Jan 2021 16:07:41 +0900 Subject: configure.ac: Add some compiler options for emscripten "-lc" and "-s ALLOW_MEMORY_GROWTH=1" are needed --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 8a8b7d9..05d3e99 100644 --- a/configure.ac +++ b/configure.ac @@ -1137,6 +1137,9 @@ main() https://github.com/ruby/ruby/blob/trunk/configure.ac#L1137 ac_cv_func___builtin_setjmp=no ]) ], +[emscripten*], [LIBS="-lm -lc $LIBS" + RUBY_APPEND_OPTIONS(LDFLAGS, -s ALLOW_MEMORY_GROWTH=1) + ], [ LIBS="-lm $LIBS"]) : ${ORIG_LIBS=$LIBS} -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/