diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 7 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Sep 4 11:11:37 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * configure.in (SOLIBS): LIBRUBY_SO also needs linking with gmp, to + run worker processes in test-all on non-ELF platforms. + Tue Sep 3 23:01:41 2013 Kouhei Sutou <kou@cozmixng.org> * test/rexml/parser/test_tree.rb diff --git a/configure.in b/configure.in index 107e4f521b..f32e868e63 100644 --- a/configure.in +++ b/configure.in @@ -1057,7 +1057,8 @@ AC_ARG_WITH([gmp], AS_IF([test "x$with_gmp" != xno], [AC_CHECK_HEADERS(gmp.h) AS_IF([test "x$ac_cv_header_gmp_h" != xno], - AC_CHECK_LIB([gmp], [__gmpz_init]))]) + AC_CHECK_LIB([gmp], [__gmpz_init])) + with_gmp="$ac_cv_lib_gmp___gmpz_init"]) dnl check for large file stuff mv confdefs.h confdefs1.h @@ -3327,6 +3328,10 @@ AS_CASE(["$target_os"], [nacl], [ FIRSTMAKEFILE=GNUmakefile:nacl/GNUmakefile.in ]) + +AS_CASE(["$with_gmp: $SOLIBS "], [no:* | *' -lgmp '*|*' $(LIBS) '*], [], + [SOLIBS="-lgmp $SOLIBS"]) + MINIOBJS="$MINIDLNOBJ" AS_CASE(["$THREAD_MODEL"], |