diff --git a/mjit_worker.c b/mjit_worker.c index cc19e2760b..193213e3a8 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -288,6 +288,9 @@ static const char *const CC_LIBS[] = { "-lmsvcrt", // mingw # 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 };