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"
This commit is contained in:
parent
f845e1bc99
commit
4171909695
@ -288,6 +288,9 @@ static const char *const CC_LIBS[] = {
|
|||||||
"-lmsvcrt", // mingw
|
"-lmsvcrt", // mingw
|
||||||
# endif
|
# endif
|
||||||
"-lgcc", // mingw, cygwin, and GCC platforms using `-nodefaultlibs -nostdlib`
|
"-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
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user