]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
autotools,meson: drop unnecessary libm from test_pty
authorKarel Zak <kzak@redhat.com>
Thu, 16 Apr 2026 14:19:38 +0000 (16:19 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Apr 2026 09:16:23 +0000 (11:16 +0200)
test_pty only uses pty-session.c and monotonic.c, neither of which
use any math functions. Remove the unnecessary libm dependency from
both autotools and meson build files.

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/Makemodule.am
meson.build

index 74205b8297a96f4c55e20ba0d562a8b0171e897a..9e9f204634b28c6d8262c60bbabbf977d812d07d 100644 (file)
@@ -183,7 +183,7 @@ test_pty_SOURCES = lib/pty-session.c \
                   include/pty-session.h \
                   lib/monotonic.c
 test_pty_CFLAGS = $(AM_CFLAGS) -DTEST_PROGRAM_PTY
-test_pty_LDADD = $(LDADD) libcommon.la $(MATH_LIBS) $(REALTIME_LIBS) -lutil
+test_pty_LDADD = $(LDADD) libcommon.la $(REALTIME_LIBS) -lutil
 endif
 
 if LINUX
index 48070b741bd0a79f6d2e2c85f126b2ae5ce426cd..185f5597702e3b5f3ea4db43843347945da479ad 100644 (file)
@@ -3600,8 +3600,7 @@ if have_pty
     c_args : ['-DTEST_PROGRAM_PTY'],
     include_directories : dir_include,
     link_with : [lib_common],
-    dependencies : [lib_m,
-                    realtime_libs,
+    dependencies : [realtime_libs,
                     lib_util],
     build_by_default: program_tests)
   if not is_disabler(exe)