From 9ec26205993819a8917bc283b9d54e9827d3c409 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sat, 7 Feb 2026 16:52:36 +0800 Subject: [PATCH] Fix test_ppbloom link: add libm for bloom's log() On Linux, libbloom uses log() which requires explicit -lm linkage. Co-Authored-By: Claude Opus 4.6 --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 962373b7..b64e5b78 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -65,7 +65,7 @@ else() endif() ss_add_test(test_ppbloom "test_ppbloom.c;${PROJECT_SOURCE_DIR}/src/ppbloom.c;${PROJECT_SOURCE_DIR}/src/utils.c" - "${TEST_PPBLOOM_LIBS};${LIBSODIUM_SHARED}") + "${TEST_PPBLOOM_LIBS};${LIBSODIUM_SHARED};m") # test_rule - needs pcre and cork set(TEST_RULE_LIBS