From 3b4c6499f5fdd4e53efd13af9ebef427632493e7 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 11 Jun 2026 23:27:55 +0800
Subject: [PATCH] Update cross compiler

---
 openssl/build.sh |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/openssl/build.sh b/openssl/build.sh
index 169c9f7..cde1cca 100755
--- a/openssl/build.sh
+++ b/openssl/build.sh
@@ -6,13 +6,13 @@
 PACK_SUFIX=tar.gz
 
 # LingYun source code FTP server
-LY_FTP=http://main.iot-yun.club:2211/src/
+LY_FTP=http://master.weike-iot.com:8021/src/
 
 # library download URL address
 LIB_URL=$LY_FTP
 
 # Cross compiler for cross compile on Linux server
-CROSS_COMPILE=arm-linux-gnueabihf-
+CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
 
 # compile jobs
 JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l`
@@ -155,10 +155,13 @@
 {
 	cd $LIB_NAME
 
-	./Configure threads -shared -no-zlib --prefix=$PREFIX_PATH --openssldir=$PREFIX_PATH linux-armv4
+	do_export
+
+	CROSS_COMPILE=${CROSSTOOL} ./Configure linux-armv4 \
+		threads -shared -no-zlib --prefix=$PREFIX_PATH --openssldir=$PREFIX_PATH
 	check_result "ERROR: configure ${LIB_NAME} failure"
 
-	make && make install
+	make -j ${JOBS} && make install
 	check_result "ERROR: compile ${LIB_NAME} failure"
 }
 
@@ -175,7 +178,5 @@
 
 do_fetch
 
-do_export
-
 do_build
 

--
Gitblit v1.10.0