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

ruby-changes:33670

From: usa <ko1@a...>
Date: Wed, 30 Apr 2014 16:29:45 +0900 (JST)
Subject: [ruby-changes:33670] usa:r45751 (ruby_2_0_0): merge revision(s) 45365: [Backport #9656]

usa	2014-04-30 16:29:40 +0900 (Wed, 30 Apr 2014)

  New Revision: 45751

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

  Log:
    merge revision(s) 45365: [Backport #9656]
    
    dl/extconf.rb: check for -fno-defer-pop option
    
    * ext/dl/extconf.rb: check for -fno-defer-pop option, since clang
      5.1 no longer support -fno-defer-pop option.

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ext/dl/extconf.rb
    branches/ruby_2_0_0/version.h
Index: ruby_2_0_0/ext/dl/extconf.rb
===================================================================
--- ruby_2_0_0/ext/dl/extconf.rb	(revision 45750)
+++ ruby_2_0_0/ext/dl/extconf.rb	(revision 45751)
@@ -1,7 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/dl/extconf.rb#L1
 require 'mkmf'
 
 if RbConfig::CONFIG['GCC'] == 'yes'
-  (have_macro("__clang__") ? $LDFLAGS : $CFLAGS) << " -fno-defer-pop"
+  flag = " -fno-defer-pop"
+  if have_macro("__clang__")
+    $LDFLAGS << flag if try_ldflags(flag)
+  else
+    $CFLAGS << flag
+  end
   $CFLAGS << " -fno-omit-frame-pointer"
 end
 
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 45750)
+++ ruby_2_0_0/version.h	(revision 45751)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
 #define RUBY_RELEASE_DATE "2014-04-30"
-#define RUBY_PATCHLEVEL 471
+#define RUBY_PATCHLEVEL 472
 
 #define RUBY_RELEASE_YEAR 2014
 #define RUBY_RELEASE_MONTH 4

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r45365


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

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