1 From 57d2c370493f2e9e33b30e8767624c648f138ec4 Mon Sep 17 00:00:00 2001
2 From: Jean Delvare <jdelvare@suse.de>
3 Date: Thu, 14 Dec 2017 13:34:34 +0100
4 Subject: Makefile: Allow to really disable the dynamic library
6 If the user disables the build of the dynamic library, we have to
7 link the tools with the static library. If we don't, the dependencies
8 will cause the dynamic library to be built regardless of the user's
11 Signed-off-by: Jean Delvare <jdelvare@suse.de>
12 Fixes: 9906b2ecb6ae ("Makefile: Add flag to disable dynamic library")
13 Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
16 1 file changed, 2 insertions(+)
18 diff --git a/Makefile b/Makefile
19 index 1bb5572..6bb741f 100644
22 @@ -43,6 +43,8 @@ endif
23 ifeq ($(BUILD_DYNAMIC_LIB),0)
24 ifeq ($(BUILD_STATIC_LIB),0)
25 $(error BUILD_DYNAMIC_LIB and BUILD_STATIC_LIB cannot be disabled at the same time)