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:
parent
f845e1bc99
commit
4171909695
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue