Hello, I'm a little uncertain of this problem or what changed to cause me to get it. I'm building multiple dynamic libraries that are both getting loaded into another application at runtime. Both of them rely transitively on glog which is built by bazel using the following rule:
cc_library (
name = "GLog",
hdrs = ["GLog.h"],
deps = [
"@com_github_gflags_gflags//:gflags",
"@com_github_glog_glog//:glog",
],
linkopts = ["-pthread"],
alwayslink = 1,
)
When I load the second of two such libs, I get the following error message.
ERROR: something wrong with flag 'timestamp_in_logfile_name' in file 'external/com_github_glog_glog/src/logging.cc'. One possibility: file 'external/com_github_glog_glog/src/logging.cc' is being linked both statically and dynamically into this executable.
I understand what it means at a basic level, but I'm not sure what to do to fix it, or for that matter why I'm not having issues with every other library that I'm relying on.
Thanks for any tips,
Chet