diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2021-01-23 16:07:41 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-01-23 16:07:41 +0900 |
| commit | f12c33b6112b38f51ae1813b19f4c331ede2af2e (patch) | |
| tree | 611afbb5719818367afcb010f023ee71d5fd3c48 | |
| parent | dd65aa95f9bf017674b9f11c9e5824cd0fa22735 (diff) | |
configure.ac: Add some compiler options for emscripten
"-lc" and "-s ALLOW_MEMORY_GROWTH=1" are needed
| -rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
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} |
