]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove the libutil dependency on Linux
authorSebastian Poeplau <poeplau@adacore.com>
Mon, 26 Jan 2026 15:03:59 +0000 (16:03 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 26 May 2026 08:38:18 +0000 (10:38 +0200)
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.

gcc/ada/s-oscons-tmplt.c

index 4102fe989e0b6967bca92cbf8fd3ba6258ebf06b..cb2e05f6aae5ecfad6cf92205bc133b876b1d4f5 100644 (file)
@@ -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 ""