-
- Downloads
runtime: call timer functions via syscall
It turns out to be painful to require linking against -lrt on GNU/Linux, as that makes it harder to link Go code into C programs. Instead just call the timer syscalls directly. That is what the upstream library does anyhow. gcc/go/ * gospec.cc: Revert 2022-02-09 change: (RTLIB, RT_LIBRARY): Don't define. (lang_specific_driver): Don't add -lrt if linking statically on GNU/Linux. gotools/ * configure.ac: Revert 2022-02-09 change: (RT_LIBS): Don't define. * Makefile.am (check-runtime): Don't set GOLIBS to $(RT_LIBS). * configure, Makefile.in: Regenerate. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/385475
Showing
- gcc/go/gofrontend/MERGE 1 addition, 1 deletiongcc/go/gofrontend/MERGE
- gcc/go/gospec.cc 5 additions, 37 deletionsgcc/go/gospec.cc
- gotools/Makefile.am 1 addition, 3 deletionsgotools/Makefile.am
- gotools/Makefile.in 1 addition, 4 deletionsgotools/Makefile.in
- gotools/configure 0 additions, 7 deletionsgotools/configure
- gotools/configure.ac 0 additions, 9 deletionsgotools/configure.ac
- libgo/Makefile.am 2 additions, 3 deletionslibgo/Makefile.am
- libgo/Makefile.in 3 additions, 6 deletionslibgo/Makefile.in
- libgo/configure 2 additions, 9 deletionslibgo/configure
- libgo/configure.ac 0 additions, 6 deletionslibgo/configure.ac
- libgo/go/runtime/os_linux.go 11 additions, 10 deletionslibgo/go/runtime/os_linux.go
- libgo/testsuite/Makefile.in 0 additions, 1 deletionlibgo/testsuite/Makefile.in
Loading
Please register or sign in to comment