Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 9977436

Browse files
committed
Add a group around V8 static libraries
This has been suggested in the Wiki so it's probably a good idea to do it.
1 parent 7b13866 commit 9977436

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/libv8/location.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def install!
2929

3030
def configure(context = MkmfContext.new)
3131
context.incflags.insert 0, Libv8::Paths.include_paths.map{ |p| "-I#{p}" }.join(" ") + " "
32-
context.ldflags.insert 0, Libv8::Paths.object_paths.join(" ") + " "
32+
context.ldflags.insert 0, "-Wl,--start-group " + Libv8::Paths.object_paths.join(" ") + " -Wl,--end-group "
3333
end
3434

3535
def verify_installation!

0 commit comments

Comments
 (0)