summaryrefslogtreecommitdiff
path: root/ext/dl
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-09 16:41:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-09 16:41:08 +0000
commit14c97cf9b6721d55f8f5afa0e7be7e7e80311aea (patch)
tree0de75424bac98412a072b8f30c23af341ae4a20c /ext/dl
parent96ab37015ecb57a65c80f4ae92dcf241dacb161e (diff)
* ext/dl/extconf.rb: clang does not use -fno-defer-pop during compilation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r--ext/dl/extconf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/dl/extconf.rb b/ext/dl/extconf.rb
index 8317ac3..6d4d6c5 100644
--- a/ext/dl/extconf.rb
+++ b/ext/dl/extconf.rb
@@ -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 = [