diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake b/cpp/cmake_modules/ThirdpartyToolchain.cmake index 52632d554aaf..17ad8f45424c 100644 --- a/cpp/cmake_modules/ThirdpartyToolchain.cmake +++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake @@ -5063,6 +5063,9 @@ if(ARROW_S3) string(APPEND ARROW_PC_REQUIRES_PRIVATE " libcurl") endif() string(APPEND ARROW_PC_REQUIRES_PRIVATE " openssl") + if(APPLE) + string(APPEND ARROW_PC_LIBS_PRIVATE " -framework Security") + endif() endif() endif() diff --git a/cpp/src/arrow/CMakeLists.txt b/cpp/src/arrow/CMakeLists.txt index fde30588a659..b64194aa6ef0 100644 --- a/cpp/src/arrow/CMakeLists.txt +++ b/cpp/src/arrow/CMakeLists.txt @@ -598,7 +598,7 @@ if(ARROW_BUILD_BUNDLED_DEPENDENCIES) IMPORTED_LOCATION) install(FILES ${arrow_bundled_dependencies_path} ${INSTALL_IS_OPTIONAL} DESTINATION ${CMAKE_INSTALL_LIBDIR}) - string(APPEND ARROW_PC_LIBS_PRIVATE " -larrow_bundled_dependencies") + string(PREPEND ARROW_PC_LIBS_PRIVATE " -larrow_bundled_dependencies") list(INSERT ARROW_STATIC_INSTALL_INTERFACE_LIBS 0 "Arrow::arrow_bundled_dependencies") endif()