Sha256: 690520b8aa381b30890946c99576bf31408cfe0c05c80bd14a704ec7a0f7b09e
Contents?: true
Size: 886 Bytes
Versions: 1
Compression:
Stored size: 886 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'/home/roelofs/projects/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("function_pointers_class")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbplusplus-0.9 | test/generated/extconf.rb |