ruby-changes:58203
From: Yusuke <ko1@a...>
Date: Thu, 10 Oct 2019 23:24:11 +0900 (JST)
Subject: [ruby-changes:58203] 4171909695 (master): mjit_worker.c: Add `-lm` to the C compiler in MJIT on Android
https://git.ruby-lang.org/ruby.git/commit/?id=4171909695 From 41719096957aa3d80e2e23d04ae288d2dee5328e Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Thu, 10 Oct 2019 23:22:37 +0900 Subject: 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" diff --git a/mjit_worker.c b/mjit_worker.c index cc19e27..193213e 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -289,6 +289,9 @@ static const char *const CC_LIBS[] = { https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L289 # 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 }; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/