[llvm] r255745 - Fuzzer: Fix library dependencies.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 15 18:14:58 PST 2015
Author: pcc
Date: Tue Dec 15 20:14:57 2015
New Revision: 255745
URL: http://llvm.org/viewvc/llvm-project?rev=255745&view=rev
Log:
Fuzzer: Fix library dependencies.
Newer versions of libstdc++ (4.9+), as well as libc++, depend directly on
libpthread from the standard library headers, so libfuzzer needs to declare
a standard library dependency.
Modified:
llvm/trunk/lib/Fuzzer/CMakeLists.txt
Modified: llvm/trunk/lib/Fuzzer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/CMakeLists.txt?rev=255745&r1=255744&r2=255745&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/CMakeLists.txt (original)
+++ llvm/trunk/lib/Fuzzer/CMakeLists.txt Tue Dec 15 20:14:57 2015
@@ -17,10 +17,16 @@ if( LLVM_USE_SANITIZE_COVERAGE )
add_library(LLVMFuzzerNoMain STATIC
$<TARGET_OBJECTS:LLVMFuzzerNoMainObjects>
)
+ if( HAVE_LIBPTHREAD )
+ target_link_libraries(LLVMFuzzerNoMain pthread)
+ endif()
add_library(LLVMFuzzer STATIC
FuzzerMain.cpp
$<TARGET_OBJECTS:LLVMFuzzerNoMainObjects>
)
+ if( HAVE_LIBPTHREAD )
+ target_link_libraries(LLVMFuzzer pthread)
+ endif()
if( LLVM_INCLUDE_TESTS )
add_subdirectory(test)
More information about the llvm-commits
mailing list