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