summaryrefslogtreecommitdiff
path: root/mjit_worker.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-10-10 23:22:37 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-10-10 23:22:37 +0900
commit41719096957aa3d80e2e23d04ae288d2dee5328e (patch)
treebd3534ea0a7b2f8f35d7effd93c60d2e7d6e3ef9 /mjit_worker.c
parentf845e1bc9951ef40f2b3672d825aa67f6d6f8368 (diff)
mjit_worker.c: Add `-lm` to the C compiler in MJIT on Android
To avoid: cannot locate symbol "modf" referenced by .../_ruby_mjit_XXX.so"
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index cc19e27..193213e 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -289,6 +289,9 @@ static const char *const CC_LIBS[] = {
# endif
"-lgcc", // mingw, cygwin, and GCC platforms using `-nodefaultlibs -nostdlib`
#endif
+#if defined __ANDROID__
+ "-lm", // to avoid 'cannot locate symbol "modf" referenced by .../_ruby_mjit_XXX.so"'
+#endif
NULL
};