I has a prblem when I use gccgo to build static programe version
1> use go build go build -compiler gccgo -gccgoflags '-static -L/lib64' test.go result:
/usr/bin/ld: cannot find -lgo
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
2>use gccgo build gccgo -o test_gccgo_yes -static -L/lib64 test.go result:
/usr/bin/ld: cannot find -lgo
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lm
/usr/bin/ld: cannot find -lc
3> if I don't use static to compile it gccgo -o test_gccgo_yes -g test.go result : ldd test_gccgo_yes show test_gccgo_yes is dynamic file
How I can build static program with gccgo?