Sha256: 0b5b68491cc8085cb119cd49fef34931a2f9304452d20392de89a9b9c0c4514e

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

require "mkmf"

cflags = " -shared -fPIC "

if $solaris
  cflags = " -G -fPIC "
  # From EventMachine
  CONFIG['LDSHARED'] = "$(CXX) -G -fPIC"
  if CONFIG['CC'] == 'cc'
    cflags = "-g -O2 -fPIC"
    CONFIG['CCDLFLAGS'] = "-fPIC"
  end
end

$CFLAGS = CONFIG['CFLAGS'] = cflags

`cd libuv; CFLAGS="#{cflags}" make; cd ..; cp libuv/uv.a libuv.a`

dir_config("uv", File.expand_path("../libuv/include", __FILE__), File.expand_path("../libuv", __FILE__))

have_library("uv")

create_makefile("noderb_extension")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
noderb-0.0.9 ext/noderb_extension/extconf.rb