Sha256: 88652d3bf76bd8d0ff2b96b3f9e4ccdcf0e7c72197875e5412922e3faa768784

Contents?: true

Size: 869 Bytes

Versions: 3

Compression:

Stored size: 869 Bytes

Contents

require 'rubygems'
require 'mkmf-rice'

# Add the arguments to the linker flags.
def append_ld_flags(flags)
  flags = [flags] unless flags.is_a?(Array)
  with_ldflags("#{$LDFLAGS} #{flags.join(' ')}") { true }
end

$CPPFLAGS += " -I'/Users/roelofs/Development/rbplusplus/test/generated'  "
$LDFLAGS += "   "

if RUBY_PLATFORM =~ /darwin/
  # In order to link the shared library into our bundle with GCC 4.x on OSX, we have to work around a bug:
  #   GCC redefines symbols - which the -fno-common prohibits.  In order to keep the -fno-common, we
  #   remove the flat_namespace (we now have two namespaces, which fixes the GCC clash).  Also, we now lookup
  #   symbols in both the namespaces (dynamic_lookup).

  $LDSHARED_CXX.gsub!('suppress', 'dynamic_lookup')
  $LDSHARED_CXX.gsub!('-flat_namespace', '')
  
  append_ld_flags '-all_load'
end

create_makefile("ui")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rbplusplus-1.0.3 test/generated/extconf.rb
rbplusplus-1.0.1 test/generated/extconf.rb
rbplusplus-1.0 test/generated/extconf.rb