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

ruby-changes:33260

From: nobu <ko1@a...>
Date: Sat, 15 Mar 2014 11:03:32 +0900 (JST)
Subject: [ruby-changes:33260] nobu:r45339 (trunk): configure.in: check symbol resolution options

nobu	2014-03-15 11:03:25 +0900 (Sat, 15 Mar 2014)

  New Revision: 45339

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

  Log:
    configure.in: check symbol resolution options
    
    * configure.in (DLDFLAGS): check for each options to control
      symbol resolution.  [ruby-core:61429] [Bug #9624]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 45338)
+++ configure.in	(revision 45339)
@@ -2702,10 +2702,6 @@ if test "$with_dln_a_out" != yes; then https://github.com/ruby/ruby/blob/trunk/configure.in#L2702
 			fi
 			rb_cv_dlopen=yes],
 	[darwin*], [	: ${LDSHARED='$(CC) -dynamic -bundle'}
-			RUBY_APPEND_OPTIONS(DLDFLAGS, [ \
-			    "${linker_flag}-undefined${linker_flag:+,}dynamic_lookup" \
-			    "${linker_flag}-multiply_defined${linker_flag:+,}suppress" \
-			    ])
 			: ${LDFLAGS=""}
 			: ${LIBPATHENV=DYLD_LIBRARY_PATH}
 			# /usr/local/include is always searched for
@@ -2772,6 +2768,21 @@ if test "$with_dln_a_out" != yes; then https://github.com/ruby/ruby/blob/trunk/configure.in#L2768
 	[ 	: ${LDSHARED='$(LD)'}])
   AC_MSG_RESULT($rb_cv_dlopen)
 
+  if test "$rb_cv_dlopen" = yes; then
+    AS_CASE(["$target_os"],
+      [darwin*] [
+	for flag in \
+	  "${linker_flag}-undefined${linker_flag:+,}dynamic_lookup" \
+	  "${linker_flag}-multiply_defined${linker_flag:+,}suppress" \
+	  ; do
+	  RUBY_TRY_LDFLAGS([$flag], [], [flag=])
+	  if test "x$flag" != x; then
+	    RUBY_APPEND_OPTIONS(DLDFLAGS, [$flag])
+	  fi
+	done
+      ])
+  fi
+
   if test "$enable_rpath" = yes; then
     if test x"${RPATHFLAG}" = x; then
       for rpathflag in -R "-rpath "; do
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45338)
+++ ChangeLog	(revision 45339)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Mar 15 11:02:58 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (DLDFLAGS): check for each options to control
+	  symbol resolution.  [ruby-core:61429] [Bug #9624]
+
 Sat Mar 15 07:02:35 2014  Eric Wong  <e@8...>
 
 	* st.c (st_update): remove unnecessary assignment

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

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