Skip to content

Commit ced605d

Browse files
jengelhcopybara-github
authored andcommitted
utf8_range: add version marker to library (#19009)
Unversioned libraries / libraries without due ABI indicators are not allowed in certain Linux distributions because it precludes the concurrent presence of multiple versions. If you have both /usr/lib/libprotobuf-lite.so.28.3.0 and /usr/lib/libprotobuf-lite.so.29.0.0, both of them want libutf8_validity.so, but if the ABI is different between utf8_range 28 and utf8_range 29, that's a problem. Closes #19009 COPYBARA_INTEGRATE_REVIEW=#19009 from jengelh:master 1a5f868 PiperOrigin-RevId: 698855702
1 parent 2dde8f1 commit ced605d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

third_party/utf8_range/CMakeLists.txt

+9
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ add_library (utf8_range
1919
# A heavier-weight C++ wrapper that supports Abseil.
2020
add_library (utf8_validity utf8_validity.cc utf8_range.c)
2121

22+
set_target_properties(utf8_range PROPERTIES
23+
VERSION ${protobuf_VERSION}
24+
OUTPUT_NAME ${LIB_PREFIX}utf8_range
25+
)
26+
set_target_properties(utf8_validity PROPERTIES
27+
VERSION ${protobuf_VERSION}
28+
OUTPUT_NAME ${LIB_PREFIX}utf8_validity
29+
)
30+
2231
# Load Abseil dependency.
2332
if (NOT TARGET absl::strings)
2433
if (NOT ABSL_ROOT_DIR)

0 commit comments

Comments
 (0)