diff options
Diffstat (limited to 'mjit_worker.c')
-rw-r--r-- | mjit_worker.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mjit_worker.c b/mjit_worker.c index cc19e2760b..193213e3a8 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 }; |