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

ruby-changes:33286

From: nobu <ko1@a...>
Date: Thu, 20 Mar 2014 12:22:00 +0900 (JST)
Subject: [ruby-changes:33286] nobu:r45365 (trunk): dl/extconf.rb: check for -fno-defer-pop option

nobu	2014-03-20 12:21:52 +0900 (Thu, 20 Mar 2014)

  New Revision: 45365

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

  Log:
    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 files:
    trunk/ext/dl/extconf.rb
Index: ext/dl/extconf.rb
===================================================================
--- ext/dl/extconf.rb	(revision 45364)
+++ ext/dl/extconf.rb	(revision 45365)
@@ -1,7 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/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
 

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

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