diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-04 02:11:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-04 02:11:38 +0000 |
commit | fdf04ce67e284a75480147c18f9ae8bb8c2991e3 (patch) | |
tree | 6af282ef7fa8d532f542f6e0b435242f869e8b51 | |
parent | 1d8efe61d8936187c77ece1e8fd644cfcdfbcff3 (diff) | |
download | ruby-fdf04ce67e284a75480147c18f9ae8bb8c2991e3.tar.gz |
configure.in: libruby needs gmp
* configure.in (SOLIBS): LIBRUBY_SO also needs linking with gmp, to
run worker processes in test-all on non-ELF platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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"], |