@ -18,13 +18,27 @@ GLIBC_REV=7397bed99280af5d9543439cdb7d018af7542720
GLIBC_INCLUDE = " /mnt/gvfs/third-party2/glibc/ $GLIBC_REV /2.20/gcc-4.9-glibc-2.20/99df8fc/include "
GLIBC_INCLUDE = " /mnt/gvfs/third-party2/glibc/ $GLIBC_REV /2.20/gcc-4.9-glibc-2.20/99df8fc/include "
GLIBC_LIBS = " -L /mnt/gvfs/third-party2/glibc/ $GLIBC_REV /2.20/gcc-4.9-glibc-2.20/99df8fc/lib "
GLIBC_LIBS = " -L /mnt/gvfs/third-party2/glibc/ $GLIBC_REV /2.20/gcc-4.9-glibc-2.20/99df8fc/lib "
# location of snappy headers and libraries
# snappy and zlib depend are bundled with MongoDB so we wan't to pick up the bundled headers when
# building for it and disable block compressors supported by RocksDB but not used by MongoDB.
if [ [ -n $ROCKSDB_FOR_MONGO ] ] ; then
MONGO_SRC = " $ROCKSDB_FOR_MONGO /src/third_party "
SNAPPY_INCLUDE = " -I $MONGO_SRC /snappy-1.1.2 "
CFLAGS += " -DSNAPPY"
ZLIB_INCLUDE = " -I $MONGO_SRC /zlib-1.2.8 "
CFLAGS += " -DZLIB"
else
SNAPPY_INCLUDE = " -I /mnt/gvfs/third-party2/snappy/b0f269b3ca47770121aa159b99e1d8d2ab260e1f/1.0.3/gcc-4.9-glibc-2.20/c32916f/include/"
SNAPPY_INCLUDE = " -I /mnt/gvfs/third-party2/snappy/b0f269b3ca47770121aa159b99e1d8d2ab260e1f/1.0.3/gcc-4.9-glibc-2.20/c32916f/include/"
if test -z $PIC_BUILD ; then
if test -z $PIC_BUILD ; then
SNAPPY_LIBS = " /mnt/gvfs/third-party2/snappy/b0f269b3ca47770121aa159b99e1d8d2ab260e1f/1.0.3/gcc-4.9-glibc-2.20/c32916f/lib/libsnappy.a"
SNAPPY_LIBS = " /mnt/gvfs/third-party2/snappy/b0f269b3ca47770121aa159b99e1d8d2ab260e1f/1.0.3/gcc-4.9-glibc-2.20/c32916f/lib/libsnappy.a"
else
else
SNAPPY_LIBS = " /mnt/gvfs/third-party2/snappy/b0f269b3ca47770121aa159b99e1d8d2ab260e1f/1.0.3/gcc-4.9-glibc-2.20/c32916f/lib/libsnappy_pic.a"
SNAPPY_LIBS = " /mnt/gvfs/third-party2/snappy/b0f269b3ca47770121aa159b99e1d8d2ab260e1f/1.0.3/gcc-4.9-glibc-2.20/c32916f/lib/libsnappy_pic.a"
fi
fi
CFLAGS += " -DSNAPPY"
CFLAGS += " -DSNAPPY"
if test -z $PIC_BUILD ; then
if test -z $PIC_BUILD ; then
@ -42,6 +56,7 @@ if test -z $PIC_BUILD; then
LZ4_LIBS = " /mnt/gvfs/third-party2/lz4/79d2943e2dd7208a3e0b06cf95e9f85f05fe9e1b/r124/gcc-4.9-glibc-2.20/4230243/lib/liblz4.a"
LZ4_LIBS = " /mnt/gvfs/third-party2/lz4/79d2943e2dd7208a3e0b06cf95e9f85f05fe9e1b/r124/gcc-4.9-glibc-2.20/4230243/lib/liblz4.a"
CFLAGS += " -DLZ4"
CFLAGS += " -DLZ4"
fi
fi
fi
# location of gflags headers and libraries
# location of gflags headers and libraries
GFLAGS_INCLUDE = " -I /mnt/gvfs/third-party2/gflags/0fa60e2b88de3e469db6c482d6e6dac72f5d65f9/1.6/gcc-4.9-glibc-2.20/4230243/include/"
GFLAGS_INCLUDE = " -I /mnt/gvfs/third-party2/gflags/0fa60e2b88de3e469db6c482d6e6dac72f5d65f9/1.6/gcc-4.9-glibc-2.20/4230243/include/"