]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/i2c-tools/0006-Makefile-Allow-to-really-disable-the-dynamic-library.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / i2c-tools / 0006-Makefile-Allow-to-really-disable-the-dynamic-library.patch
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
5
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
9 request.
10
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>
14 ---
15  Makefile | 2 ++
16  1 file changed, 2 insertions(+)
17
18 diff --git a/Makefile b/Makefile
19 index 1bb5572..6bb741f 100644
20 --- a/Makefile
21 +++ b/Makefile
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)
26 +else
27 +USE_STATIC_LIB := 1
28  endif
29  endif
30  
31 -- 
32 2.7.4
33