2022-06-03 19:15:11 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-11-01 20:26:26 +00:00
|
|
|
# Copyright (C) 2017 Intel Corporation.
|
2017-06-12 19:26:12 +00:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
|
|
|
|
# This snippet will be included into the RocksDB Makefile
|
|
|
|
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.app.mk
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.modules.mk
|
|
|
|
|
2017-07-18 22:06:28 +00:00
|
|
|
CXXFLAGS += -I$(SPDK_DIR)/include -Iinclude/
|
2017-06-12 19:26:12 +00:00
|
|
|
|
|
|
|
# The SPDK makefiles turn this on, but RocksDB won't compile with it. So
|
|
|
|
# turn it off after including the SPDK makefiles.
|
2020-07-21 11:05:14 +00:00
|
|
|
CXXFLAGS += -Wno-missing-declarations -Wno-maybe-uninitialized
|
2017-06-12 19:26:12 +00:00
|
|
|
|
|
|
|
# The SPDK Makefiles may turn these options on but we do not want to enable
|
|
|
|
# them for the RocksDB source files.
|
|
|
|
CXXFLAGS += -fno-profile-arcs -fno-test-coverage
|
2017-07-27 02:58:48 +00:00
|
|
|
ifeq ($(CONFIG_UBSAN),y)
|
2017-06-12 19:26:12 +00:00
|
|
|
CXXFLAGS += -fno-sanitize=undefined
|
2017-07-27 02:58:48 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ASAN),y)
|
2017-06-12 19:26:12 +00:00
|
|
|
CXXFLAGS += -fno-sanitize=address
|
2017-07-27 02:58:48 +00:00
|
|
|
endif
|
2017-06-12 19:26:12 +00:00
|
|
|
|
2021-07-06 04:27:16 +00:00
|
|
|
SPDK_LIB_LIST = $(ALL_MODULES_LIST) event_bdev event
|
2017-06-12 19:26:12 +00:00
|
|
|
|
2017-06-06 20:26:04 +00:00
|
|
|
AM_LINK += $(SPDK_LIB_LINKER_ARGS) $(ENV_LINKER_ARGS)
|
2018-06-08 13:39:57 +00:00
|
|
|
AM_LINK += $(SYS_LIBS)
|
2017-06-12 19:26:12 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_UBSAN),y)
|
|
|
|
AM_LINK += -fsanitize=undefined
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_COVERAGE),y)
|
|
|
|
AM_LINK += -fprofile-arcs -ftest-coverage
|
|
|
|
endif
|