From f7dd2cbdfe53fd1ff24776ea7a22d8122f686edd Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 17 Aug 2023 17:51:18 +0800
Subject: [PATCH] Update build shell script to support static library

---
 cjson/build.sh |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/cjson/build.sh b/cjson/build.sh
index 27cec2d..1666b33 100755
--- a/cjson/build.sh
+++ b/cjson/build.sh
@@ -154,10 +154,15 @@
 function do_build()
 {
 	cd $LIB_NAME
+
+	do_export
+
 	sed -i "s|^CC =.*|CC = ${CROSS_COMPILE}gcc -std=c89|" Makefile
 
 	make && make PREFIX=$PREFIX_PATH install
 	check_result "ERROR: compile ${LIB_NAME} failure"
+
+	cp libcjson.a $PREFIX_PATH/lib
 }
 
 function do_clean()
@@ -172,8 +177,6 @@
 fi
 
 do_fetch
-
-do_export
 
 do_build
 

--
Gitblit v1.9.1