diff options
author | Jean Delvare <jdelvare@suse.de> | 2017-12-14 13:34:34 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2017-12-14 13:34:34 +0100 |
commit | 57d2c370493f2e9e33b30e8767624c648f138ec4 (patch) | |
tree | 13cd0e77cd9c96fc5a35041d9f3ab7129ef94df5 | |
parent | de278d0933e3caea2508f95fd00e7e338bc12e8f (diff) | |
download | i2c-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-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |