From 9e753565090c7a7bc8285f72f24af797ebd0a19e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= <tseeker@nocternity.net>
Date: Wed, 1 Nov 2017 23:32:06 +0100
Subject: [PATCH] Build static library

---
 Makefile.main | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile.main b/Makefile.main
index a3599a4..11da03c 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -105,6 +105,9 @@ $(LIB_DYNAMIC): $(LIB_OBJS)
 		-o $(LIB_DYNAMIC) \
 		$(LIB_OBJS) $(LIBS_LIB)
 
+$(LIB_STATIC): $(LIB_OBJS)
+	ar crD $(LIB_STATIC) $(LIB_OBJS)
+
 # Tests
 $(TEST_SUITES): $(OUTDIR)/test-%: $(OUTDIR)/tests/%.o $(TEST_MAIN) $(TEST_NEEDS)
 	$(CXX) $(LDFLAGS) -o $@ $< $(TEST_MAIN) $(LIBS_TESTS)