Skip to content

Commit 8306060

Browse files
committed
perf: link with pthread explicitly
Without pthread in linker flags building with GCC is failed: > /usr/include/c++/9/thread:130: undefined reference to `pthread_create' The patch fixes that. Needed for tarantool/tarantool#10866
1 parent 9cfc183 commit 8306060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perf/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ endif()
2020
include_directories("${PROJECT_SOURCE_DIR}")
2121

2222
add_executable(small.perftest small.cc)
23-
target_link_libraries(small.perftest small ${BENCHMARK_LIBRARIES})
23+
target_link_libraries(small.perftest small ${BENCHMARK_LIBRARIES} pthread)
2424
target_include_directories(small.perftest PUBLIC ${BENCHMARK_INCLUDE_DIRS})

0 commit comments

Comments
 (0)