diff options
author | Jean Delvare <jdelvare@suse.de> | 2017-12-14 08:52:26 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2017-12-14 08:52:26 +0100 |
commit | 08b0d67ba7eceb862cb17f52eb1911e9579726ea (patch) | |
tree | be9554457e69b4acc20d7ea08a4ccc2ea61b52ad /lib | |
parent | 1831b618fbedf0bcf15b0465981d133d9e3c53ee (diff) | |
download | i2c-tools-git-08b0d67ba7eceb862cb17f52eb1911e9579726ea.tar.gz |
tools/Module.mk: Add missing dependencies
Better build the library before building the tools which link against
it, otherwise parallel builds could run into a race and break.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Tested-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Acked-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Module.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Module.mk b/lib/Module.mk index 8a58f5b..67afe91 100644 --- a/lib/Module.mk +++ b/lib/Module.mk @@ -37,6 +37,13 @@ ifeq ($(BUILD_STATIC_LIB),1) LIB_TARGETS += $(LIB_STLIBNAME) endif +# Library file to link against (static or dynamic) +ifeq ($(USE_STATIC_LIB),1) +LIB_DEPS := $(LIB_DIR)/$(LIB_STLIBNAME) +else +LIB_DEPS := $(LIB_DIR)/$(LIB_SHBASENAME) +endif + # # Libraries # |