build: initialize SYS_LIBS in spdk.common.mk
There are cases where spdk.common.mk can get included more than once in a Makefile. So avoid duplication in SYS_LIBS by initializing it before appending text to it. The duplication was harmless but a bit annoying. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Idf081f973e15a9ab6ec9211b9a3cbf02c736c7a0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5676 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
c006a8da16
commit
400c3b8a52
@ -133,6 +133,8 @@ ifneq ($(LD_TYPE),)
|
||||
LDFLAGS += -fuse-ld=$(LD_TYPE)
|
||||
endif
|
||||
|
||||
SYS_LIBS =
|
||||
|
||||
ifeq ($(OS),FreeBSD)
|
||||
SYS_LIBS += -L/usr/local/lib
|
||||
COMMON_CFLAGS += -I/usr/local/include
|
||||
|
Loading…
Reference in New Issue
Block a user