aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan José <soyjuanarbol@gmail.com>2025-06-14 15:37:30 -0500
committerGitHub <noreply@github.com>2025-06-14 22:37:30 +0200
commit1fbf4f71871d5fce44eb0a06bba6feda96f9743f (patch)
tree94007a90fd16ed444a841bbf6a71e2fa4675c142
parent6a0945b3337c8ef32b6332a6aaca7ae61002e40f (diff)
downloadlibuv-1fbf4f71871d5fce44eb0a06bba6feda96f9743f.tar.gz
libuv-1fbf4f71871d5fce44eb0a06bba6feda96f9743f.zip
build: make automake link libm on bsd-likes (#4795)
This mirrors the behavior already fixed in the CMake build system. Fixes: https://github.com/libuv/libuv/issues/4794 Refs: https://github.com/libuv/libuv/commit/4681d5d5705be932f82e1e79eff72f17b5bf82e2 Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
-rw-r--r--Makefile.am12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index f3808b69..5f29adbf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -438,7 +438,7 @@ libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \
src/unix/kqueue.c \
src/unix/proctitle.c \
src/unix/random-getentropy.c
-test_run_tests_LDFLAGS += -lutil
+test_run_tests_LDFLAGS += -lutil -lm
endif
if DRAGONFLY
@@ -448,7 +448,7 @@ libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \
src/unix/freebsd.c \
src/unix/kqueue.c \
src/unix/posix-hrtime.c
-test_run_tests_LDFLAGS += -lutil
+test_run_tests_LDFLAGS += -lutil -lm
endif
if FREEBSD
@@ -459,7 +459,7 @@ libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \
src/unix/kqueue.c \
src/unix/posix-hrtime.c \
src/unix/random-getrandom.c
-test_run_tests_LDFLAGS += -lutil
+test_run_tests_LDFLAGS += -lutil -lm
endif
if HAIKU
@@ -491,7 +491,7 @@ libuv_la_SOURCES += src/unix/linux.c \
src/unix/proctitle.c \
src/unix/random-getrandom.c \
src/unix/random-sysctl-linux.c
-test_run_tests_LDFLAGS += -lutil
+test_run_tests_LDFLAGS += -lutil -lm
endif
if MSYS
@@ -514,7 +514,7 @@ libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \
src/unix/kqueue.c \
src/unix/netbsd.c \
src/unix/posix-hrtime.c
-test_run_tests_LDFLAGS += -lutil
+test_run_tests_LDFLAGS += -lutil -lm
endif
if OPENBSD
@@ -525,7 +525,7 @@ libuv_la_SOURCES += src/unix/bsd-ifaddrs.c \
src/unix/openbsd.c \
src/unix/posix-hrtime.c \
src/unix/random-getentropy.c
-test_run_tests_LDFLAGS += -lutil
+test_run_tests_LDFLAGS += -lutil -lm
endif
if SUNOS