Skip to content

Commit

Permalink
Also ensure correct OSX compiler flags in PyArrow
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Jun 4, 2016
1 parent 4a80116 commit 00c1461
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions python/conda.recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ export ARROW_HOME=$PREFIX

cd $RECIPE_DIR

if [ "$(uname)" == "Darwin" ]; then
# C++11 finagling for Mac OSX
export CC=clang
export CXX=clang++
export MACOSX_VERSION_MIN="10.7"
CXXFLAGS="${CXXFLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}"
CXXFLAGS="${CXXFLAGS} -stdlib=libc++ -std=c++11"
export LDFLAGS="${LDFLAGS} -mmacosx-version-min=${MACOSX_VERSION_MIN}"
export LDFLAGS="${LDFLAGS} -stdlib=libc++ -std=c++11"
export LINKFLAGS="${LDFLAGS}"
export MACOSX_DEPLOYMENT_TARGET=10.7
fi

echo Setting the compiler...
if [ `uname` == Linux ]; then
EXTRA_CMAKE_ARGS=-DCMAKE_SHARED_LINKER_FLAGS=-static-libstdc++
Expand Down

0 comments on commit 00c1461

Please sign in to comment.