ext/extconf.rb in streamly-0.1.3 vs ext/extconf.rb in streamly-0.1.4
- old
+ new
@@ -1,9 +1,12 @@
# encoding: UTF-8
require 'mkmf'
require 'rbconfig'
+# 1.9-only
+have_func('rb_thread_blocking_region')
+
$CFLAGS << ' -DHAVE_RBTRAP' if have_var('rb_trap_immediate', ['ruby.h', 'rubysig.h'])
# add_define 'HAVE_RBTRAP' if have_var('rb_trap_immediate', ['ruby.h', 'rubysig.h'])
# Borrowed from taf2-curb
dir_config('curl')
@@ -17,9 +20,9 @@
Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
options to extconf.
EOM
end
-$CFLAGS << ' -Wall'
+$CFLAGS << ' -Wall -Wextra -funroll-loops'
# $CFLAGS << ' -O0 -ggdb'
create_makefile("streamly_ext")