kcar.git  about / heads / tags
bytestream to Rack response converter
blob 4f19c4ac60272e08a16b23dee68339715220fa5f 424 bytes (raw)
$ git show v0.3.0:ext/kcar/extconf.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
# -*- encoding: binary -*-
require 'mkmf'

dir_config("kcar")

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")

# -fPIC is needed for Rubinius, MRI already uses it regardless
with_cflags($CFLAGS + " -fPIC ") do
  create_makefile("kcar_ext")
end

git clone https://yhbt.net/kcar.git