Sha256: f331b01ac02f39d7bc53c44ed3d1fabf22b5c26b86b7c144c2b8076e2921f3b8

Contents?: true

Size: 525 Bytes

Versions: 7

Compression:

Stored size: 525 Bytes

Contents

require 'mkmf'

CONFIG['LDSHARED'] = CONFIG['LDSHARED'].sub(/^\$\(CC\)/, 'g++')

# if RUBY_PLATFORM =~ /darwin/
# #  CONFIG['LDSHARED'] = 'g++ --dynamiclib -flat_namespace -undefined suppress' 
#   CONFIG['LDSHARED'] = 'g++ --dynamiclib'
# elsif RUBY_PLATFORM =~ /linux/
#   CONFIG['LDSHARED'] = 'g++ -shared'  
# end

if RUBY_PLATFORM =~ /darwin/
  CONFIG['LDSHARED'] = 'g++ -dynamiclib -single_module -flat_namespace -undefined suppress'
end

$objs = ['algor.o', 'dict.o', 'memory.o', 'rmmseg.o']
create_makefile('rmmseg')

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
rmmseg-cpp-traditional-2.0.2 ext/rmmseg/extconf.rb
rmmseg-cpp-traditional-2.0.0 ext/rmmseg/extconf.rb
rmmseg-cpp-traditional-1.0.1 ext/rmmseg/extconf.rb
rmmseg-cpp-traditional-1.0.0 ext/rmmseg/extconf.rb
rmmseg-cpp-traditional-0.0.2 ext/rmmseg/extconf.rb
rmmseg-cpp-0.2.9 ext/rmmseg/extconf.rb
rmmseg-cpp-0.2.7 ext/rmmseg/extconf.rb