@ -63,6 +63,13 @@ else
fi
CFLAGS += " -DGFLAGS=gflags"
BENCHMARK_INCLUDE = " -I $BENCHMARK_BASE /include/ "
if test -z $PIC_BUILD ; then
BENCHMARK_LIBS = " $BENCHMARK_BASE /lib/libbenchmark.a "
else
BENCHMARK_LIBS = " $BENCHMARK_BASE /lib/libbenchmark_pic.a "
fi
# location of jemalloc
JEMALLOC_INCLUDE = " -I $JEMALLOC_BASE /include/ "
JEMALLOC_LIB = " $JEMALLOC_BASE /lib/libjemalloc.a "
@ -104,7 +111,7 @@ BINUTILS="$BINUTILS_BASE/bin"
AR = " $BINUTILS /ar "
AS = " $BINUTILS /as "
DEPS_INCLUDE = " $SNAPPY_INCLUDE $ZLIB_INCLUDE $BZIP_INCLUDE $LZ4_INCLUDE $ZSTD_INCLUDE $GFLAGS_INCLUDE $NUMA_INCLUDE $TBB_INCLUDE $LIBURING_INCLUDE "
DEPS_INCLUDE = " $SNAPPY_INCLUDE $ZLIB_INCLUDE $BZIP_INCLUDE $LZ4_INCLUDE $ZSTD_INCLUDE $GFLAGS_INCLUDE $NUMA_INCLUDE $TBB_INCLUDE $LIBURING_INCLUDE $BENCHMARK_INCLUDE "
STDLIBS = " -L $GCC_BASE /lib64 "
@ -150,7 +157,7 @@ CFLAGS+=" $DEPS_INCLUDE"
CFLAGS += " -DROCKSDB_PLATFORM_POSIX -DROCKSDB_LIB_IO_POSIX -DROCKSDB_FALLOCATE_PRESENT -DROCKSDB_MALLOC_USABLE_SIZE -DROCKSDB_RANGESYNC_PRESENT -DROCKSDB_SCHED_GETCPU_PRESENT -DROCKSDB_SUPPORT_THREAD_LOCAL -DHAVE_SSE42 -DROCKSDB_IOURING_PRESENT"
CXXFLAGS += " $CFLAGS "
EXEC_LDFLAGS = " $SNAPPY_LIBS $ZLIB_LIBS $BZIP_LIBS $LZ4_LIBS $ZSTD_LIBS $GFLAGS_LIBS $NUMA_LIB $TBB_LIBS $LIBURING_LIBS "
EXEC_LDFLAGS = " $SNAPPY_LIBS $ZLIB_LIBS $BZIP_LIBS $LZ4_LIBS $ZSTD_LIBS $GFLAGS_LIBS $NUMA_LIB $TBB_LIBS $LIBURING_LIBS $BENCHMARK_LIBS "
EXEC_LDFLAGS += " -Wl,--dynamic-linker,/usr/local/fbcode/platform009/lib/ld.so"
EXEC_LDFLAGS += " $LIBUNWIND "
EXEC_LDFLAGS += " -Wl,-rpath=/usr/local/fbcode/platform009/lib"
@ -161,7 +168,7 @@ EXEC_LDFLAGS+=" -ldl"
PLATFORM_LDFLAGS = " $LIBGCC_LIBS $GLIBC_LIBS $STDLIBS -lgcc -lstdc++ "
PLATFORM_LDFLAGS += " -B $BINUTILS "
EXEC_LDFLAGS_SHARED = " $SNAPPY_LIBS $ZLIB_LIBS $BZIP_LIBS $LZ4_LIBS $ZSTD_LIBS $GFLAGS_LIBS $TBB_LIBS $LIBURING_LIBS "
EXEC_LDFLAGS_SHARED = " $SNAPPY_LIBS $ZLIB_LIBS $BZIP_LIBS $LZ4_LIBS $ZSTD_LIBS $GFLAGS_LIBS $TBB_LIBS $LIBURING_LIBS $BENCHMARK_LIBS "
VALGRIND_VER = " $VALGRIND_BASE /bin/ "