Sha256: c3b08aa8d1905ba60a5e30e07d9c399c9b956ec71711714cdd2d764654a77bce

Contents?: true

Size: 565 Bytes

Versions: 16

Compression:

Stored size: 565 Bytes

Contents

#puts "running make"
#`make build`
require 'mkmf'
find_executable('go')
$objs = []
def $objs.empty?; false ;end
create_makefile("ruby_snowflake_client_ext")
case `#{CONFIG['CC']} --version`
when /Free Software Foundation/
  ldflags = '-Wl,--unresolved-symbols=ignore-all'
when /clang/
  ldflags = '-undefined dynamic_lookup'
end
File.open('Makefile', 'a') do |f|
  f.write <<eom.gsub(/^ {8}/, "\t")
$(DLLIB): Makefile $(srcdir)/ruby_snowflake.go
        CGO_CFLAGS='$(INCFLAGS)' CGO_LDFLAGS='#{ldflags}' \
  go build -p 4 -buildmode=c-shared -o $(DLLIB) .
eom
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby_snowflake_client-1.3.7 ext/extconf.rb
ruby_snowflake_client-1.3.6 ext/extconf.rb
ruby_snowflake_client-1.3.5 ext/extconf.rb
ruby_snowflake_client-1.3.4 ext/extconf.rb
ruby_snowflake_client-1.3.4.pre.debug ext/extconf.rb
ruby_snowflake_client-1.3.3.pre.debug ext/extconf.rb
ruby_snowflake_client-1.3.2 ext/extconf.rb
ruby_snowflake_client-1.3.1 ext/extconf.rb
ruby_snowflake_client-1.3.0 ext/extconf.rb
ruby_snowflake_client-1.2.1 ext/extconf.rb
ruby_snowflake_client-1.2.0 ext/extconf.rb
ruby_snowflake_client-1.1.1 ext/extconf.rb
ruby_snowflake_client-1.1.0 ext/extconf.rb
ruby_snowflake_client-1.0.2 ext/extconf.rb
ruby_snowflake_client-1.0.1 ext/extconf.rb
ruby_snowflake_client-1.0.0 ext/extconf.rb