1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-03-20 03:21:52 +00:00
parent e0a0edf548
commit 3981d60ba2

View file

@ -1,7 +1,12 @@
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