From 9d4dc0da2746ddf02acf1739a53243b6a4df384b Mon Sep 17 00:00:00 2001 From: dyu Date: Fri, 27 Dec 2013 15:19:31 +0800 Subject: [PATCH 1/3] fix build bug from recent commit:https://github.com/facebook/rocksdb/commit/43c386b72ee834c88a1a22500ce1fc36a8208277 --- build_tools/build_detect_platform | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index 96a1fb331..497ca2f3d 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -198,7 +198,7 @@ EOF } EOF if [ "$?" = 0 ]; then - COMMON_FLAGS="$PLATFORM_LDFLAGS -DROCKSDB_FALLOCATE_PRESENT" + COMMON_FLAGS="$COMMON_FLAGS $PLATFORM_LDFLAGS -DROCKSDB_FALLOCATE_PRESENT" fi # Test whether Snappy library is installed From a6b476a2ac453398327b8d4d00ef85911520841c Mon Sep 17 00:00:00 2001 From: dyu Date: Mon, 30 Dec 2013 21:33:52 +0800 Subject: [PATCH 2/3] tweak build bug fix --- build_tools/build_detect_platform | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_tools/build_detect_platform b/build_tools/build_detect_platform index 497ca2f3d..87c4c871d 100755 --- a/build_tools/build_detect_platform +++ b/build_tools/build_detect_platform @@ -198,7 +198,7 @@ EOF } EOF if [ "$?" = 0 ]; then - COMMON_FLAGS="$COMMON_FLAGS $PLATFORM_LDFLAGS -DROCKSDB_FALLOCATE_PRESENT" + COMMON_FLAGS="$COMMON_FLAGS -DROCKSDB_FALLOCATE_PRESENT" fi # Test whether Snappy library is installed From e842b99fc5f4536cadf80b287c6887a49d4c2d79 Mon Sep 17 00:00:00 2001 From: dyu Date: Mon, 30 Dec 2013 21:34:45 +0800 Subject: [PATCH 3/3] docs for shared library builds --- INSTALL.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/INSTALL.md b/INSTALL.md index 07d975068..ab0460341 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -44,5 +44,7 @@ libraries. You are on your own. `make clean; make` will compile librocksdb.a (RocskDB static library) and all the unit tests. You can run all unit tests with `make check`. +For shared library builds, exec `make librocksdb.so` instead. + If you followed the above steps and your compile or unit tests fail, please submit an issue: (https://github.com/facebook/rocksdb/issues)