diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-18 16:39:15 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-18 16:39:15 -0700 |
commit | 4f58f4a4d60806af7233193852be134cb74c7c21 (patch) | |
tree | f1f2a07fd1555bf158b63032faf927d62e251ce4 /ext | |
parent | 413322fa1851917b749383e9207d16ba58274f59 (diff) | |
download | unicorn-4f58f4a4d60806af7233193852be134cb74c7c21.tar.gz |
Not everybody can use it, even if most of the world can.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/unicorn_http/extconf.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/unicorn_http/extconf.rb b/ext/unicorn_http/extconf.rb index 00328be..0c6a186 100644 --- a/ext/unicorn_http/extconf.rb +++ b/ext/unicorn_http/extconf.rb @@ -1,12 +1,14 @@ # -*- encoding: binary -*- require 'mkmf' -$CFLAGS += " -fPIC " # needed for Rubinius, MRI already uses it regardless - dir_config("unicorn_http") have_macro("SIZEOF_OFF_T", "ruby.h") or check_sizeof("off_t", "sys/types.h") have_macro("SIZEOF_LONG", "ruby.h") or check_sizeof("long", "sys/types.h") have_func("rb_str_set_len", "ruby.h") have_func("rb_str_modify", "ruby.h") -create_makefile("unicorn_http") + +# -fPIC is needed for Rubinius, MRI already uses it regardless +with_cflags($CFLAGS + " -fPIC ") do + create_makefile("unicorn_http") +end |