Skip to content

Commit

Permalink
Fix build for snappy
Browse files Browse the repository at this point in the history
  • Loading branch information
codeadict committed Jan 2, 2020
1 parent ab628e6 commit d23c6d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion c_src/build_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,16 @@ case "$1" in
;;

*)
export MACOSX_DEPLOYMENT_TARGET=10.8

if [ ! -d snappy-$SNAPPY_VSN ]; then
tar -xzf snappy-$SNAPPY_VSN.tar.gz
(cd snappy-$SNAPPY_VSN && ./configure --prefix=$BASEDIR/system --libdir=$BASEDIR/system/lib --with-pic)
fi

(cd snappy-$SNAPPY_VSN && $MAKE && $MAKE install)
if [ ! -f system/lib/libsnappy.a ]; then
(cd snappy-$SNAPPY_VSN && $MAKE -stdlib=libc++ && $MAKE -stdlib=libc++ install)
fi

export CFLAGS="$CFLAGS -I $BASEDIR/system/include"
export CXXFLAGS="$CXXFLAGS -I $BASEDIR/system/include"
Expand Down

0 comments on commit d23c6d1

Please sign in to comment.