Skip to content

Commit

Permalink
Use CXXFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 5, 2024
1 parent f296051 commit db607a9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ci/scripts/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db607a9

Please sign in to comment.