Re: [PATCH] libgo: check if -lucontext is required for {make, set, get}context

2022-12-20 Thread Ian Lance Taylor via Gcc-patches
On Mon, Dec 19, 2022 at 8:59 AM wrote: > > From: Sören Tempel > > This patch is similar to the existing check for librt. If libucontext > is installed and libucontext.a provides the aforementioned symbols, then > it is added to $LIBS. If not, no error is emitted. We could, > alternatively, also

[PATCH] libgo: check if -lucontext is required for {make, set, get}context

2022-12-19 Thread soeren--- via Gcc-patches
From: Sören Tempel This patch is similar to the existing check for librt. If libucontext is installed and libucontext.a provides the aforementioned symbols, then it is added to $LIBS. If not, no error is emitted. We could, alternatively, also check libc.a for these symbols and thus prefer libc