ruby-changes:22474
From: nobu <ko1@a...>
Date: Fri, 10 Feb 2012 01:41:18 +0900 (JST)
Subject: [ruby-changes:22474] nobu:r34523 (trunk): * ext/dl/extconf.rb: clang does not use -fno-defer-pop during compilation.
nobu 2012-02-10 01:41:08 +0900 (Fri, 10 Feb 2012) New Revision: 34523 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34523 Log: * ext/dl/extconf.rb: clang does not use -fno-defer-pop during compilation. Modified files: trunk/ext/dl/extconf.rb Index: ext/dl/extconf.rb =================================================================== --- ext/dl/extconf.rb (revision 34522) +++ ext/dl/extconf.rb (revision 34523) @@ -1,7 +1,8 @@ require 'mkmf' if RbConfig::CONFIG['GCC'] == 'yes' - $CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer" + (have_macro("__clang__") ? $LDFLAGS : $CFLAGS) << " -fno-defer-pop" + $CFLAGS << " -fno-omit-frame-pointer" end $INSTALLFILES = [ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/