Skip to content

Commit 6be83da

Browse files
committed
Use GoGem::Util.generate_ldflags in create_go_makefile
1 parent 1e0e2d1 commit 6be83da

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

_gem/lib/go_gem/mkmf.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ def $objs.empty?; false; end
2828

2929
create_makefile(target, srcprefix)
3030

31-
case `#{RbConfig::CONFIG["CC"]} --version` # rubocop:disable Lint/LiteralAsCondition
32-
when /Free Software Foundation/
33-
ldflags = "-Wl,--unresolved-symbols=ignore-all"
34-
when /clang/
35-
ldflags = "-undefined dynamic_lookup"
36-
end
37-
31+
ldflags = GoGem::Util.generate_ldflags
3832
current_dir = File.expand_path(".")
3933

4034
goflags = "-tags=#{GoGem::Util.ruby_minor_version_build_tag}"

0 commit comments

Comments
 (0)