configure.ac: Add some compiler options for emscripten

"-lc" and "-s ALLOW_MEMORY_GROWTH=1" are needed
This commit is contained in:
Yusuke Endoh 2021-01-23 16:07:41 +09:00
parent dd65aa95f9
commit f12c33b611
1 changed files with 3 additions and 0 deletions

View File

@ -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}