]> gcc.gnu.org Git - gcc.git/commit
gccgo: link static libgo against -lrt on GNU/Linux
authorIan Lance Taylor <iant@golang.org>
Wed, 9 Feb 2022 21:11:55 +0000 (13:11 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 9 Feb 2022 21:13:17 +0000 (13:13 -0800)
commitf6ff6738fa25fb012ed208e01de5a84d8668d538
tree8b39147f24010e5fa562b9c9d0471b4bcb3390b2
parent4cf3c339815cdfa636b25a512f91b63d7c313fd6
gccgo: link static libgo against -lrt on GNU/Linux

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.
gcc/go/gospec.cc
gotools/Makefile.am
gotools/Makefile.in
gotools/configure
gotools/configure.ac
This page took 0.067429 seconds and 5 git commands to generate.