@ -12,7 +12,6 @@ else
TOOLCHAIN_EXECUTABLES = " /mnt/gvfs/third-party/ $TOOLCHAIN_REV /centos5.2-native "
TOOLCHAIN_EXECUTABLES = " /mnt/gvfs/third-party/ $TOOLCHAIN_REV /centos5.2-native "
fi
fi
TOOLCHAIN_LIB_BASE = " /mnt/gvfs/third-party/ $TOOLCHAIN_REV /gcc-4.8.1-glibc-2.17 "
TOOLCHAIN_LIB_BASE = " /mnt/gvfs/third-party/ $TOOLCHAIN_REV /gcc-4.8.1-glibc-2.17 "
TOOL_JEMALLOC = jemalloc-3.3.1/4d53c6f
# location of libhdfs libraries
# location of libhdfs libraries
if test " $USE_HDFS " ; then
if test " $USE_HDFS " ; then
@ -48,6 +47,10 @@ BZIP_LIBS=" $TOOLCHAIN_LIB_BASE/bzip2/bzip2-1.0.6/c3f970a/lib/libbz2.a"
GFLAGS_INCLUDE = " -I $TOOLCHAIN_LIB_BASE /gflags/gflags-1.6/c3f970a/include "
GFLAGS_INCLUDE = " -I $TOOLCHAIN_LIB_BASE /gflags/gflags-1.6/c3f970a/include "
GFLAGS_LIBS = " $TOOLCHAIN_LIB_BASE /gflags/gflags-1.6/c3f970a/lib/libgflags.a "
GFLAGS_LIBS = " $TOOLCHAIN_LIB_BASE /gflags/gflags-1.6/c3f970a/lib/libgflags.a "
# location of jemalloc
JEMALLOC_INCLUDE = " -I $TOOLCHAIN_LIB_BASE /jemalloc/jemalloc-3.4.1/4d53c6f/include/ "
JEMALLOC_LIB = " -Wl,--whole-archive $TOOLCHAIN_LIB_BASE /jemalloc/jemalloc-3.4.1/4d53c6f/lib/libjemalloc.a "
# use Intel SSE support for checksum calculations
# use Intel SSE support for checksum calculations
export USE_SSE = " -msse -msse4.2 "
export USE_SSE = " -msse -msse4.2 "
@ -57,13 +60,11 @@ AR=$TOOLCHAIN_EXECUTABLES/binutils/binutils-2.21.1/da39a3e/bin/ar
RANLIB = $TOOLCHAIN_EXECUTABLES /binutils/binutils-2.21.1/da39a3e/bin/ranlib
RANLIB = $TOOLCHAIN_EXECUTABLES /binutils/binutils-2.21.1/da39a3e/bin/ranlib
CFLAGS = " -B $TOOLCHAIN_EXECUTABLES /binutils/binutils-2.21.1/da39a3e/bin/gold -m64 -mtune=generic -fPIC "
CFLAGS = " -B $TOOLCHAIN_EXECUTABLES /binutils/binutils-2.21.1/da39a3e/bin/gold -m64 -mtune=generic -fPIC "
CFLAGS += " -I $TOOLCHAIN_LIB_BASE /jemalloc/ $TOOL_JEMALLOC /include -DHAVE_JEMALLOC -nostdlib "
CFLAGS += " -nostdlib $LIBGCC_INCLUDE $GLIBC_INCLUDE "
CFLAGS += " $LIBGCC_INCLUDE $GLIBC_INCLUDE "
CFLAGS += " -DROCKSDB_PLATFORM_POSIX -DROCKSDB_ATOMIC_PRESENT"
CFLAGS += " -DROCKSDB_PLATFORM_POSIX -DROCKSDB_ATOMIC_PRESENT"
CFLAGS += " -DSNAPPY -DGFLAGS -DZLIB -DBZIP2"
CFLAGS += " -DSNAPPY -DGFLAGS -DZLIB -DBZIP2"
EXEC_LDFLAGS = "-Wl,--dynamic-linker,/usr/local/fbcode/gcc-4.8.1-glibc-2.17/lib/ld.so"
EXEC_LDFLAGS = "-Wl,--dynamic-linker,/usr/local/fbcode/gcc-4.8.1-glibc-2.17/lib/ld.so"
EXEC_LDFLAGS += " -Wl,--whole-archive $TOOLCHAIN_LIB_BASE /jemalloc/ $TOOL_JEMALLOC /lib/libjemalloc.a "
EXEC_LDFLAGS += " -Wl,--no-whole-archive $TOOLCHAIN_LIB_BASE /libunwind/libunwind-1.0.1/675d945/lib/libunwind.a "
EXEC_LDFLAGS += " -Wl,--no-whole-archive $TOOLCHAIN_LIB_BASE /libunwind/libunwind-1.0.1/675d945/lib/libunwind.a "
EXEC_LDFLAGS += " $HDFSLIB $SNAPPY_LIBS $ZLIB_LIBS $BZIP_LIBS $GFLAGS_LIBS "
EXEC_LDFLAGS += " $HDFSLIB $SNAPPY_LIBS $ZLIB_LIBS $BZIP_LIBS $GFLAGS_LIBS "
@ -73,4 +74,4 @@ EXEC_LDFLAGS_SHARED="$SNAPPY_LIBS $ZLIB_LIBS $BZIP_LIBS $GFLAGS_LIBS"
VALGRIND_VER = " $TOOLCHAIN_LIB_BASE /valgrind/valgrind-3.8.1/c3f970a/bin/ "
VALGRIND_VER = " $TOOLCHAIN_LIB_BASE /valgrind/valgrind-3.8.1/c3f970a/bin/ "
export CC CXX AR RANLIB CFLAGS EXEC_LDFLAGS EXEC_LDFLAGS_SHARED VALGRIND_VER
export CC CXX AR RANLIB CFLAGS EXEC_LDFLAGS EXEC_LDFLAGS_SHARED VALGRIND_VER JEMALLOC_LIB JEMALLOC_INCLUDE