Skip to content

Commit 41984a2

Browse files
simonlacopybara-github
authored andcommitted
PR #1806: Fix undefined symbol: __android_log_write
This adds -llog under CMake. The Bazel build already has this. Imported from GitHub PR abseil/abseil-cpp#1806 close #1805 Merge 76dd9e33780411e999cae44e136a6d69a10ee39e into a1de53d Merging this change closes #1806 COPYBARA_INTEGRATE_REVIEW=abseil/abseil-cpp#1806 from simonla:fix_compile_android_shared_lib 76dd9e33780411e999cae44e136a6d69a10ee39e PiperOrigin-RevId: 715779297 Change-Id: I19ea9433fda94a60c1d2c1b3a0b40e80bdd3c078
1 parent a1de53d commit 41984a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMake/AbseilDll.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ function(absl_make_dll)
838838
PRIVATE
839839
${_dll_libs}
840840
${ABSL_DEFAULT_LINKOPTS}
841+
$<$<BOOL:${ANDROID}>:-llog>
841842
)
842843
set_target_properties(${_dll} PROPERTIES
843844
LINKER_LANGUAGE "CXX"

0 commit comments

Comments
 (0)