Skip to content

Commit d6f69ab

Browse files
committed
[WIP] Pass -gcflags to go build
1 parent 780984c commit d6f69ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_gem/lib/go_gem/mkmf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def $objs.empty?; false; end
3838
$(DLLIB): Makefile $(srcdir)/*.go
3939
cd $(srcdir); \
4040
CGO_CFLAGS='$(INCFLAGS)' CGO_LDFLAGS='#{ldflags}' GOFLAGS='#{goflags}' \
41-
go build -p 4 -buildmode=c-shared -o #{current_dir}/$(DLLIB)
41+
go build -gcflags="all=-N -l" -p 4 -buildmode=c-shared -o #{current_dir}/$(DLLIB)
4242
MAKEFILE
4343
end
4444
end

0 commit comments

Comments
 (0)