Skip to content

Commit d2e5dd5

Browse files
committed
Fix for ubuntu elf linker error
1 parent 7fef695 commit d2e5dd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ set_target_properties(bcc-shared PROPERTIES VERSION ${REVISION_LAST} SOVERSION 0
4040
set_target_properties(bcc-shared PROPERTIES OUTPUT_NAME bcc)
4141

4242
add_library(bcc-loader-static STATIC ${bcc_sym_sources} ${bcc_util_sources})
43+
target_link_libraries(bcc-loader-static elf)
4344
add_library(bcc-static STATIC
4445
${bcc_common_sources} ${bcc_table_sources} ${bcc_util_sources})
4546
set_target_properties(bcc-static PROPERTIES OUTPUT_NAME bcc)

0 commit comments

Comments
 (0)