From b6547244ecbc85ac182e09daace1e9bc5ce6b312 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Thu, 9 Apr 2020 15:32:30 -0700 Subject: [PATCH] ARROW-8373: [CI][GLib] Find gio-2.0 manually on macOS Because "pkg-config --cflags gio-2.0" includes the "-I$(xcrun --show-sdk-path)/usr/include" flag by zlib.pc. The include path includes the standard C headers such as stdlib.h. It confuses clang++ (/usr/bin/c++). This also removes needless gio-2.0 dependency from arrow-glib.pc. Closes #6886 from kou/ci-glib-macos Authored-by: Sutou Kouhei Signed-off-by: Neal Richardson --- ci/scripts/c_glib_build.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ci/scripts/c_glib_build.sh b/ci/scripts/c_glib_build.sh index 22492bb37..ce3cea18e 100755 --- a/ci/scripts/c_glib_build.sh +++ b/ci/scripts/c_glib_build.sh @@ -26,12 +26,6 @@ build_dir=${2}/c_glib export PKG_CONFIG_PATH=${ARROW_HOME}/lib/pkgconfig -if which brew > /dev/null 2>&1; then - export $(echo env | brew sh | grep "^HOMEBREW_SDKROOT=") - export $(echo env | brew sh | grep "^PKG_CONFIG=") - PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:$(echo 'echo $PKG_CONFIG_LIBDIR' | brew sh) -fi - export CFLAGS="-DARROW_NO_DEPRECATED_API" export CXXFLAGS="-DARROW_NO_DEPRECATED_API"