From f12c33b6112b38f51ae1813b19f4c331ede2af2e Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sat, 23 Jan 2021 16:07:41 +0900 Subject: [PATCH] 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 8a8b7d949d..05d3e993c5 100644 --- a/configure.ac +++ b/configure.ac @@ -1137,6 +1137,9 @@ main() 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}