Debug symbol when using gccgo

87 views
Skip to first unread message

Yonatan Gizachew

unread,
Oct 13, 2020, 3:52:55 AM10/13/20
to golang-nuts
I am building a C-shared library from go code like below:
 > go build -o awesome.so -buildmode=c-shared myprog.go

How can I build the C_shared library in debug mode?

Ian Lance Taylor

unread,
Oct 13, 2020, 3:15:46 PM10/13/20
to Yonatan Gizachew, golang-nuts
It should work to use -gccgoflags=-g.

Ian
Reply all
Reply to author
Forward
0 new messages