ext/extconf.rb in rb-threadframe-0.33 vs ext/extconf.rb in rb-threadframe-0.34
- old
+ new
@@ -2,11 +2,13 @@
fail "You need to install a threadframe-patched Ruby.
See http://github.com/rocky/rb-threadframe/wiki/How-to-Install" unless
RbConfig::CONFIG.member?('rb-threadframe')
-config_file = File.join(File.dirname(__FILE__), 'config_options')
+# Allow use customization of compile options. For example, the
+# following lines could be put in config_options:
+# CONFIG['optflags'] = '' # Or -O3
+# CONFIG['debugflags'] = '-g3 -ggdb'
+config_file = File.join(File.dirname(__FILE__), 'config_options.rb')
load config_file if File.exist?(config_file)
-# Temporary: to turn off optimization
-# $CFLAGS='-fno-strict-aliasing -g -fPIC'
create_makefile("thread_frame")