Commit 530cd52f by Greg Falcon Committed by Copybara-Service

Add `-llog` to linker options when building log_sink_set in logging internals.

In Android builds this library calls __android_log_write directly, and so needs this linker dep.

PiperOrigin-RevId: 474080654
Change-Id: I19f6ac4f78e635541ccad08ec9e553adfe609b3f
parent b92f23a0
...@@ -173,6 +173,7 @@ absl_cc_library( ...@@ -173,6 +173,7 @@ absl_cc_library(
${ABSL_DEFAULT_COPTS} ${ABSL_DEFAULT_COPTS}
LINKOPTS LINKOPTS
${ABSL_DEFAULT_LINKOPTS} ${ABSL_DEFAULT_LINKOPTS}
$<$<BOOL:${ANDROID}>:-llog>
DEPS DEPS
absl::base absl::base
absl::cleanup absl::cleanup
......
...@@ -163,7 +163,10 @@ cc_library( ...@@ -163,7 +163,10 @@ cc_library(
srcs = ["log_sink_set.cc"], srcs = ["log_sink_set.cc"],
hdrs = ["log_sink_set.h"], hdrs = ["log_sink_set.h"],
copts = ABSL_DEFAULT_COPTS, copts = ABSL_DEFAULT_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS + select({
"//conditions:default": [],
"@platforms//os:android": ["-llog"],
}),
deps = [ deps = [
":config", ":config",
":globals", ":globals",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment