Commit ed537580 authored by Jim Harris's avatar Jim Harris
Browse files

build: fix shared library dependencies



When --with-shared is specified, we need to make sure the
shared libraries have been built before we start linking
applications.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I98510b29cca67e09f0c33ac9c8e823e61ac5dc8d

Reviewed-on: https://review.gerrithub.io/424722


Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarLance Hartmann <lance.hartmann@oracle.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 4a3458d0
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -52,6 +52,12 @@ endif
endif
endif

ifeq ($(CONFIG_SHARED),y)
LIB = shared_lib
else
LIB = lib
endif

all: $(DIRS-y)
clean: $(DIRS-y)
	$(Q)rm -f mk/cc.mk
@@ -62,9 +68,9 @@ install: all

shared_lib: lib
lib: $(DPDKBUILD)
app: lib
test: lib
examples: lib
app: $(LIB)
test: $(LIB)
examples: $(LIB)
pkgdep:
	sh ./scripts/pkgdep.sh