This is an automated email from the ASF dual-hosted git repository. guangmingchen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push: new 16ab5b5c Do not link abseil interface targets (#2592) 16ab5b5c is described below commit 16ab5b5cf654e8af5e3c23be17a8bd2f3571c96a Author: Xiaofeng Wang <wasp...@gmail.com> AuthorDate: Mon Apr 8 10:09:21 2024 +0800 Do not link abseil interface targets (#2592) --- config_brpc.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config_brpc.sh b/config_brpc.sh index cc945d30..ddaa6daa 100755 --- a/config_brpc.sh +++ b/config_brpc.sh @@ -266,7 +266,7 @@ PROTOBUF_VERSION=$(grep '#define GOOGLE_PROTOBUF_VERSION [0-9]\+' $PROTOBUF_HDR/ if [ "$PROTOBUF_VERSION" -ge 4022000 ]; then ABSL_HDR=$(find_dir_of_header_or_die absl/base/config.h) ABSL_LIB=$(find_dir_of_lib_or_die absl_strings) - ABSL_LIB_NAMES=" + ABSL_TARGET_NAMES=" absl_bad_optional_access absl_bad_variant_access absl_base @@ -333,8 +333,11 @@ if [ "$PROTOBUF_VERSION" -ge 4022000 ]; then absl_time absl_time_zone " - for i in $ABSL_LIB_NAMES; do - append_linking "$ABSL_LIB" "$i" + for i in $ABSL_TARGET_NAMES; do + # ignore interface targets + if [ -n "$(find_dir_of_lib $i)" ]; then + append_linking "$ABSL_LIB" "$i" + fi done CXXFLAGS="-std=c++17" else --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org