From 99774366a4c369e8383e208c907e52c740156c0f Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 22 Aug 2017 15:49:22 +0300 Subject: [PATCH] Add a group around V8 static libraries This has been suggested in the Wiki so it's probably a good idea to do it. --- ext/libv8/location.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!