Skip to content

Commit 2c8fa37

Browse files
lsk567claude
andcommitted
Add -lm to plugin.cmake for Linux
TracePluginCustomCmake uses plugin.cmake which also needs libm. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9de6815 commit 2c8fa37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ if(APPLE)
8585
elseif(UNIX)
8686
target_link_libraries(${LF_MAIN_TARGET} PRIVATE "-lstdc++")
8787
message(STATUS "Linked C++ standard library (libstdc++)")
88+
# Math library (gRPC uses lround, etc.)
89+
target_link_libraries(${LF_MAIN_TARGET} PRIVATE "-lm")
90+
message(STATUS "Linked math library (libm)")
8891
endif()
8992

9093
# Link CoreFoundation framework (required by Abseil on macOS for time zone handling)

0 commit comments

Comments
 (0)