diff --git a/ext/libv8/location.rb b/ext/libv8/location.rb index bc4111b..8383a25 100644 --- a/ext/libv8/location.rb +++ b/ext/libv8/location.rb @@ -29,7 +29,7 @@ module Libv8 def configure(context = MkmfContext.new) context.incflags.insert 0, Libv8::Paths.include_paths.map{ |p| "-I#{p}" }.join(" ") + " " - context.ldflags.insert 0, Libv8::Paths.object_paths.join(" ") + " " + context.ldflags.insert 0, "-Wl,--start-group " + Libv8::Paths.object_paths.join(" ") + " -Wl,--end-group " end def verify_installation!