summaryrefslogtreecommitdiff
path: root/ruby-runner.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-12 02:14:00 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-12 02:14:00 (GMT)
commit7c5a79efba23cb861dcdb98ffef2227ae9a49bd4 (patch)
tree3d29877b757194bdcbeb7bcaf1e780755b0092b6 /ruby-runner.c
parent727e90172bc01b5fc637bc633dd0bfd6d01f4d22 (diff)
exe/ruby: link libm for fiddle test
* common.mk (exe/ruby): $(LIBS) should come after the source file due to the ld spec. * ruby-runner.c (ruby_libm_func): force to link libm for fiddle test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby-runner.c')
-rw-r--r--ruby-runner.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ruby-runner.c b/ruby-runner.c
index 99be4a0..b5a2e50 100644
--- a/ruby-runner.c
+++ b/ruby-runner.c
@@ -43,6 +43,10 @@ insert_env_path(const char *envname, const char *paths, size_t size, int prepend
setenv(envname, env, 1);
}
+/* force to link libm for fiddle test */
+#include <math.h>
+double (*const ruby_libm_func)(double) = log;
+
#define EXTOUT_DIR BUILDDIR"/"EXTOUT
int
main(int argc, char **argv)