about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-14 17:45:32 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-14 23:17:55 -0700
commit06efebe6139acbe819ef5c4e8b0e832c113fb9ef (patch)
tree760473fdd587820852fd53bcd4e7a831d9f55e44 /ext
parentf37c23704cb73d57e9e478295d1641df1d9104c7 (diff)
downloadunicorn-06efebe6139acbe819ef5c4e8b0e832c113fb9ef.tar.gz
Rubinius doesn't seem to set this by default
Diffstat (limited to 'ext')
-rw-r--r--ext/unicorn_http/extconf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/unicorn_http/extconf.rb b/ext/unicorn_http/extconf.rb
index 164df66..00328be 100644
--- a/ext/unicorn_http/extconf.rb
+++ b/ext/unicorn_http/extconf.rb
@@ -1,6 +1,8 @@
 # -*- 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")