summaryrefslogtreecommitdiff
path: root/ext/dl/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/extconf.rb')
-rw-r--r--ext/dl/extconf.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/dl/extconf.rb b/ext/dl/extconf.rb
index dd9c3844e49..bd92313b7e8 100644
--- a/ext/dl/extconf.rb
+++ b/ext/dl/extconf.rb
@@ -26,12 +26,8 @@ if (Config::CONFIG['CC'] =~ /gcc/) # from Win32API
$CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer"
end
-if (Config::CONFIG['CC'] =~ /gcc/) && (Config::CONFIG['arch'] =~ /i.86/)
- $with_asm = true
-else
- $with_asm = false
-end
-$with_dlstack = ! $with_asm
+$with_dlstack ||= true
+$with_asm = ! $with_dlstack
$with_type_int = try_cpp(<<EOF)
#include "config.h"