From: Karel Zak Date: Thu, 16 Apr 2026 14:19:38 +0000 (+0200) Subject: autotools,meson: drop unnecessary libm from test_pty X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=3c7daccacdb70826a1ed00af1913be18bc869891;p=thirdparty%2Futil-linux.git autotools,meson: drop unnecessary libm from test_pty 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 --- diff --git a/lib/Makemodule.am b/lib/Makemodule.am index 74205b829..9e9f20463 100644 --- a/lib/Makemodule.am +++ b/lib/Makemodule.am @@ -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 diff --git a/meson.build b/meson.build index 48070b741..185f55977 100644 --- a/meson.build +++ b/meson.build @@ -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)