LIB_LINKS should be added as a dependency only when BUILD_DYNAMIC_LIB is enabled Signed-off-by: Angelo Compagnucci <angelo@xxxxxxxxxxxxxxxxxxxx> --- lib/Module.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Module.mk b/lib/Module.mk index 8a58f5b..de189a2 100644 --- a/lib/Module.mk +++ b/lib/Module.mk @@ -27,10 +27,9 @@ LIB_SHSONAME := $(LIB_SHBASENAME).$(LIB_MAINVER) LIB_SHLIBNAME := $(LIB_SHBASENAME).$(LIB_VER) LIB_STLIBNAME := libi2c.a -LIB_LINKS := $(LIB_SHSONAME) $(LIB_SHBASENAME) - LIB_TARGETS := ifeq ($(BUILD_DYNAMIC_LIB),1) +LIB_LINKS := $(LIB_SHSONAME) $(LIB_SHBASENAME) LIB_TARGETS += $(LIB_SHLIBNAME) endif ifeq ($(BUILD_STATIC_LIB),1) -- 2.7.4