1 From 283676e2e8f15bedca20c3d94caeecfdebe11ffd Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
3 Date: Mon, 23 Nov 2015 22:53:09 +0100
4 Subject: [PATCH 2/2] Install static library for static builds
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 [Gustavo: update for 4.1.2]
11 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
12 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
15 1 file changed, 3 insertions(+)
17 diff --git a/Makefile b/Makefile
18 index 86c8fac..fbaff63 100644
21 @@ -163,6 +163,9 @@ ifeq ($(BUILD_SHARED),yes)
22 ln -sf $(LIBRARY_FULL_VERSION_SHARED) $(LIBDIR)/$(LIBRARY_VERSION_SHARED)
23 ln -sf $(LIBRARY_FULL_VERSION_SHARED) $(LIBDIR)/$(LIBRARY_SHARED)
25 +ifeq ($(BUILD_STATIC),yes)
26 + install -m 755 $(BUILD_PATH)/$(LIBRARY_ARCHIVE) $(LIBDIR)/$(LIBRARY_ARCHIVE)
28 if [ -f $(BUILD_PATH)/$(CLIENT_TARGET) ]; then install -m 755 $(BUILD_PATH)/$(CLIENT_TARGET) $(BINDIR); fi
30 @echo "use make installcheck to test the install"