From db607a90c10ffe16c67fe8bae8c075f1a7eebb06 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Thu, 4 Jul 2024 18:00:54 +0900 Subject: [PATCH] Use CXXFLAGS --- ci/scripts/PKGBUILD | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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