From 0fb0cda686e00b624dc783ed3b2b31e2d438e02c Mon Sep 17 00:00:00 2001 From: Kishore Nallan Date: Mon, 29 May 2017 17:13:56 +0530 Subject: [PATCH] Make RocksDB build portable. --- cmake/RocksDB.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/RocksDB.cmake b/cmake/RocksDB.cmake index b026df18..649e585e 100644 --- a/cmake/RocksDB.cmake +++ b/cmake/RocksDB.cmake @@ -20,6 +20,7 @@ file(COPY ${CMAKE_SOURCE_DIR}/cmake/patches/build_detect_platform DESTINATION if(NOT EXISTS ${DEP_ROOT_DIR}/${ROCKSDB_NAME}/librocksdb.a) message("Building ${ROCKSDB_NAME} locally...") + set(ENV{PORTABLE} 1) execute_process(COMMAND make "static_lib" WORKING_DIRECTORY ${DEP_ROOT_DIR}/${ROCKSDB_NAME}/ RESULT_VARIABLE ROCKSDB_BUILD) if(NOT ROCKSDB_BUILD EQUAL 0)