From: Brenden Blanco Date: Wed, 23 Aug 2017 01:31:03 +0000 (-0700) Subject: Fix for ubuntu elf linker error X-Git-Tag: submit/tizen_4.0/20171018.110122~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2e5dd57310bcfb7890a419ab56e1e392d9eaa10;p=platform%2Fupstream%2Fbcc.git Fix for ubuntu elf linker error --- diff --git a/src/cc/CMakeLists.txt b/src/cc/CMakeLists.txt index 72a521cf..7a4647c7 100644 --- a/src/cc/CMakeLists.txt +++ b/src/cc/CMakeLists.txt @@ -40,6 +40,7 @@ set_target_properties(bcc-shared PROPERTIES VERSION ${REVISION_LAST} SOVERSION 0 set_target_properties(bcc-shared PROPERTIES OUTPUT_NAME bcc) add_library(bcc-loader-static STATIC ${bcc_sym_sources} ${bcc_util_sources}) +target_link_libraries(bcc-loader-static elf) add_library(bcc-static STATIC ${bcc_common_sources} ${bcc_table_sources} ${bcc_util_sources}) set_target_properties(bcc-static PROPERTIES OUTPUT_NAME bcc)