Rocksdb源码编译

Rocksdb源码编译

编译过程

rocksdb编译由Makefile控制。

Makefile -> build_tools/build_detect_platform

build_detect_platform: 检查编译平台及依赖库, 设置编译变量参数,将编译变量参数make_config.mk

1
2
3
4
5
6
7
8
9
CFLAGS += ${EXTRA_CFLAGS}
CXXFLAGS += ${EXTRA_CXXFLAGS}
LDFLAGS += $(EXTRA_LDFLAGS)


LIBNAME=librocksdb
LIBRARY = ${LIBNAME}.a

static_lib: $(LIBRARY)
updatedupdated2024-08-252024-08-25