https://gcc.gnu.org/g:b1f2426168437e74ffecdf0ba2189c89dd555d37
commit r17-773-gb1f2426168437e74ffecdf0ba2189c89dd555d37 Author: Sebastian Poeplau <[email protected]> Date: Mon Jan 26 16:03:59 2026 +0100 ada: Remove the libutil dependency on Linux This commit removes the Ada runtime's dependency on libutil when targeting Linux, where the library is typically empty. Moreover, when the runtime is built with Makefile.rtl the dependency isn't present (see Make variable MISCLIB); this commit therefore synchronizes the GPR build with the Makefile build. gcc/ada/ChangeLog: * s-oscons-tmplt.c (PTY_Library): Define empty for Linux targets. Diff: --- gcc/ada/s-oscons-tmplt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index 4102fe989e0b..cb2e05f6aae5 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -1054,7 +1054,7 @@ CNU(RTS_CONTROL_ENABLE, "Enable RTS flow ctrl") */ -#if defined (__FreeBSD__) || defined (__linux__) || defined (__DragonFly__) +#if defined (__FreeBSD__) || defined (__DragonFly__) # define PTY_Library "-lutil" #else # define PTY_Library ""
