diff --git a/ci/scripts/PKGBUILD b/ci/scripts/PKGBUILD index bc247e84ee059..e12099f2b405d 100644 --- a/ci/scripts/PKGBUILD +++ b/ci/scripts/PKGBUILD @@ -69,11 +69,15 @@ build() { mkdir -p ${cpp_build_dir} pushd ${cpp_build_dir} - # We use static cURL. If we can use cURL's CMake package, we don't need to - # specify CURL_STATICLIB explicitly. But we don't have cURL's CMake package. + # We use static cURL in google-cloud-cpp. If we can use cURL's CMake + # package, we don't need to specify CURL_STATICLIB explicitly. But + # we don't have cURL's CMake package. We need to use CXXFLAGS + # instead of ARROW_CXXFLAGS because ARROW_CXXFLAGS aren't passed to + # ExternProjects. + export CXXFLAGS="${CXXFLAGS} -DCURL_STATICLIB" # The Rtools libutf8proc is a static lib, but Findutf8proc.cmake doesn't # set the appropriate compiler definition. - export CPPFLAGS="-DCURL_STATICLIB -DUTF8PROC_STATIC" + export CPPFLAGS="-DUTF8PROC_STATIC" # CMAKE_UNITY_BUILD is set to OFF as otherwise some compute functionality # segfaults in tests