1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
Yusuke Endoh 2019-10-10 23:22:37 +09:00
parent f845e1bc99
commit 4171909695

View file

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