message: rocksdb: use rocksdb's detected ld flags
diff: @@ -224,7 +224,7 @@ ifeq ($(storage_engine), rocksdb)
  STORAGE_ENGINE=$(ROCKSDB_LIBA)
  STORAGE_ENGINE_PATH=$(ROCKSDB_PATH)
  INCS+=-I${ROCKSDB_PATH}/include -I${ROCKSDB_PATH}
  - LIBS:= ${ROCKSDB_LIBA} ${SNAPPY_LIBA} ${LIBS} -lz -lbz2
  + LIBS:= ${ROCKSDB_LIBA} ${SNAPPY_LIBA} ${LIBS}
  CXXFLAGS+=-D__USE_ROCKSDB__ -std=c++11
  else
  ifeq ($(storage_engine), wiredtiger)
  @@ -361,7 +361,12 @@ ${LEVELDB_FILE}:
  echo "<<<<< Done dowloading LevelDB"
  .PHONY: rocksdb
  -rocksdb: $(ROCKSDB_LIBA)
  +rocksdb: $(ROCKSDB_LIBA) rocksdb_flags
  +
  +rocksdb_flags:
  + $(eval ROCKSDB_LDFLAGS=$(shell grep PLATFORM_LDFLAGS $(ROCKSDB_PATH)/make_config.mk | cut -d '=' -f2 | sed 's/\-lsnappy//' | sed 's/\-lrt//' | sed 's/\-lpthread//'))
  + $(eval LIBS+=$(ROCKSDB_LDFLAGS))
  +
  $(ROCKSDB_LIBA): $(SNAPPY_LIBA) $(ROCKSDB_PATH)
  echo ">>>>> Building ROCKSDB" && \
  