[前][次][番号順一覧][スレッド一覧]

ruby-changes:30738

From: nobu <ko1@a...>
Date: Wed, 4 Sep 2013 11:11:45 +0900 (JST)
Subject: [ruby-changes:30738] nobu:r42817 (trunk): configure.in: libruby needs gmp

nobu	2013-09-04 11:11:38 +0900 (Wed, 04 Sep 2013)

  New Revision: 42817

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42817

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 42816)
+++ configure.in	(revision 42817)
@@ -1057,7 +1057,8 @@ AC_ARG_WITH([gmp], https://github.com/ruby/ruby/blob/trunk/configure.in#L1057
 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"], https://github.com/ruby/ruby/blob/trunk/configure.in#L3328
     [nacl], [
 	FIRSTMAKEFILE=GNUmakefile:nacl/GNUmakefile.in
 	])
+
+AS_CASE(["$with_gmp: $SOLIBS "], [no:* | *' -lgmp '*|*' $(LIBS) '*], [],
+	[SOLIBS="-lgmp $SOLIBS"])
+
 MINIOBJS="$MINIDLNOBJ"
 
 AS_CASE(["$THREAD_MODEL"],
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42816)
+++ ChangeLog	(revision 42817)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Sep  4 11:11:37 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@c...>
 
 	* test/rexml/parser/test_tree.rb

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]