tadeja commented on code in PR #51653:
URL: https://github.com/apache/arrow/pull/51653#discussion_r4144791092


##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -4405,6 +4405,38 @@ if(ARROW_BUILD_STATIC)
      AND NOT WIN32)
     arrow_append_pc_system_library("libxml-2.0" ARROW_LIBXML2_PC "-lxml2")
   endif()
+  if(ARROW_GCS
+     AND google_cloud_cpp_storage_SOURCE STREQUAL "BUNDLED"
+     AND absl_SOURCE STREQUAL "SYSTEM")
+    # Bundled google-cloud-cpp needs system Abseil for static linking.
+    # Abseil .pc files include indirect link dependencies that base -labsl_* 
flags omit
+    find_package(PkgConfig QUIET)
+    if(PkgConfig_FOUND)

Review Comment:
   Good idea, added.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to