mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-29 18:51:23 +08:00
The upcoming Go 1.18 release requires linking against -lrt on GNU/Linux (only) in order to call timer_create and friends. Also change gotools to link the runtime test against -lrt. * gospec.cc (RTLIB, RT_LIBRARY): Define. (lang_specific_driver): Add -lrt if linking statically on GNU/Linux. * configure.ac (RT_LIBS): Define. * Makefile.am (check-runtime): Set GOLIBS to $(RT_LIBS). * configure, Makefile.in: Regenerate.
This directory builds tools used by people working in the Go language. The source code for these tools lives in libgo/go/cmd, where it is copied from the master gofrontend repository. This directory contains only the configure/Makefile instructions required to build the tools. This directory builds two programs for general use: go and gofmt. It also builds one program for internal use by the go tool: cgo. For more information on these tools see the doc.go files in the relevant source code, which can also be seen hosted at golang.org: http://golang.org/cmd/go http://golang.org/cmd/gofmt http://golang.org/cmd/cgo