aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2017-12-14 13:34:34 +0100
committerJean Delvare <jdelvare@suse.de>2017-12-14 13:34:34 +0100
commit57d2c370493f2e9e33b30e8767624c648f138ec4 (patch)
tree13cd0e77cd9c96fc5a35041d9f3ab7129ef94df5
parentde278d0933e3caea2508f95fd00e7e338bc12e8f (diff)
downloadi2c-tools-57d2c370493f2e9e33b30e8767624c648f138ec4.tar.gz
Makefile: Allow to really disable the dynamic library
If the user disables the build of the dynamic library, we have to link the tools with the static library. If we don't, the dependencies will cause the dynamic library to be built regardless of the user's request. Signed-off-by: Jean Delvare <jdelvare@suse.de> Fixes: 9906b2ecb6ae ("Makefile: Add flag to disable dynamic library")
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1bb5572..6bb741f 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,8 @@ endif
ifeq ($(BUILD_DYNAMIC_LIB),0)
ifeq ($(BUILD_STATIC_LIB),0)
$(error BUILD_DYNAMIC_LIB and BUILD_STATIC_LIB cannot be disabled at the same time)
+else
+USE_STATIC_LIB := 1
endif
endif