Skip to content

Commit 9de6815

Browse files
lsk567claude
andcommitted
Add -lm to link libraries for Linux
gRPC uses lround from libm which needs to be explicitly linked. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 943b2e6 commit 9de6815

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/lf-trace-xronosConfig.cmake.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ if(NOT TARGET lf::trace-impl)
6060
list(APPEND _lf_trace_link_items "-lc++" "-lc++abi")
6161
elseif(UNIX)
6262
list(APPEND _lf_trace_link_items "-lstdc++")
63+
# Math library (gRPC uses lround, etc.)
64+
list(APPEND _lf_trace_link_items "-lm")
6365
endif()
6466

6567
set_property(TARGET lf::trace-impl APPEND PROPERTY

0 commit comments

Comments
 (0)