void-packages/srcpkgs/android-tools/patches/link-absl.patch

22 lines
854 B
Diff

--- a/vendor/CMakeLists.partition.txt
+++ b/vendor/CMakeLists.partition.txt
@@ -28,7 +28,7 @@ add_library(liblpdump STATIC
${DYNAMIC_PARTITIONS_DEVICE_INFO_PROTO_SRCS} ${DYNAMIC_PARTITIONS_DEVICE_INFO_PROTO_HDRS}
extras/partition_tools/lpdump.cc)
target_link_libraries(liblpdump PRIVATE
- libbase libjsonpbparse liblp protobuf::libprotobuf)
+ libbase libjsonpbparse liblp protobuf::libprotobuf absl::status)
add_executable(lpdump
extras/partition_tools/lpdump_host.cc)
--- a/vendor/CMakeLists.txt
+++ b/vendor/CMakeLists.txt
@@ -73,6 +73,7 @@ pkg_check_modules(libpcre2-8 REQUIRED IM
pkg_check_modules(libusb-1.0 REQUIRED IMPORTED_TARGET libusb-1.0)
pkg_check_modules(libzstd REQUIRED IMPORTED_TARGET libzstd)
+find_package(absl REQUIRED)
find_package(Protobuf CONFIG)
find_package(Protobuf REQUIRED)
set(THREADS_PREFER_PTHREAD_FLAG ON)