Skip to content

Commit

Permalink
Merge pull request iovisor#1720 from iovisor/yhs_dev
Browse files Browse the repository at this point in the history
fix compilation with latest clang/llvm 7.0
  • Loading branch information
yonghong-song committed Apr 30, 2018
2 parents d07e2ec + 46ebd9e commit cf44278
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${llvm_lib_exclude_f
# bcc_common_libs_for_a for archive libraries
# bcc_common_libs_for_s for shared libraries
set(bcc_common_libs_for_a b_frontend clang_frontend bpf-static
-Wl,--whole-archive ${clang_libs} ${llvm_libs} -Wl,--no-whole-archive
${LIBELF_LIBRARIES})
set(bcc_common_libs_for_s b_frontend clang_frontend bpf-static
${clang_libs} ${llvm_libs} ${LIBELF_LIBRARIES})
set(bcc_common_libs_for_s ${bcc_common_libs_for_a})
set(bcc_common_libs_for_lua ${bcc_common_libs_for_a})
set(bcc_common_libs_for_lua ${bcc_common_libs_for_s})

if(ENABLE_CPP_API)
add_subdirectory(api)
Expand Down

0 comments on commit cf44278

Please sign in to comment.