Skip to content

Commit

Permalink
build: add -lcrypto (OpenSSL) to SYS_LIBS
Browse files Browse the repository at this point in the history
This is already required to build the shared library and iSCSI
components; simplify these Makefiles by adding -lcrypto to the central
SYS_LIBS in mk/spdk.common.mk.

Change-Id: I8fdaffbccc1294e24e32559387b0ed99d1deb0ce
Signed-off-by: Daniel Verkamp <[email protected]>
Reviewed-on: https://review.gerrithub.io/415351
Tested-by: SPDK Automated Test System <[email protected]>
Reviewed-by: Jim Harris <[email protected]>
Reviewed-by: Ben Walker <[email protected]>
  • Loading branch information
danielverkamp committed Jun 20, 2018
1 parent 65c48bf commit fdf5c1d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/iscsi_tgt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ endif
LIBS += $(BLOCKDEV_MODULES_LINKER_ARGS) \
$(COPY_MODULES_LINKER_ARGS) \
$(NET_MODULES_LINKER_ARGS)
LIBS += $(SPDK_LIB_LINKER_ARGS) -lcrypto
LIBS += $(SPDK_LIB_LINKER_ARGS)
LIBS += $(ENV_LINKER_ARGS)

all : $(APP)
Expand Down
1 change: 0 additions & 1 deletion app/spdk_tgt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ LIBS += $(BLOCKDEV_MODULES_LINKER_ARGS) \
$(COPY_MODULES_LINKER_ARGS) \
$(NET_MODULES_LINKER_ARGS) \
$(SPDK_LIB_LINKER_ARGS) $(ENV_LINKER_ARGS)
LIBS += -lcrypto

all: $(APP)
@:
Expand Down
1 change: 1 addition & 0 deletions mk/spdk.common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ CXXFLAGS += $(COMMON_CFLAGS) -std=c++0x

SYS_LIBS += -lrt
SYS_LIBS += -luuid
SYS_LIBS += -lcrypto

MAKEFLAGS += --no-print-directory

Expand Down
1 change: 0 additions & 1 deletion shared_lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ $(SHARED_LIB): $(SPDK_LIB_FILES) $(SPDK_WHOLE_LIBS) $(BLOCKDEV_MODULES_FILES) $(
$(filter-out -Wl$(comma)--no-whole-archive,$(LIBS)) \
-Wl,--no-whole-archive \
-Wl,--version-script=spdk.map \
-lcrypto \
$(SYS_LIBS)

.PHONY: all clean $(DIRS-y)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/lib/iscsi/iscsi.c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ SCSI_OBJS = port
ISCSI_OBJS = md5 param
LIBS += $(SCSI_OBJS:%=$(SPDK_ROOT_DIR)/lib/scsi/%.o)
LIBS += $(ISCSI_OBJS:%=$(SPDK_ROOT_DIR)/lib/iscsi/%.o)
LIBS += -lcunit -lcrypto $(ENV_LINKER_ARGS)
LIBS += -lcunit $(ENV_LINKER_ARGS)

TEST_FILE = iscsi_ut.c

Expand Down

0 comments on commit fdf5c1d

Please sign in to comment.