From b057f1b4d9e0c201c698e72fbe93e0068a531b03 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sun, 25 Aug 2019 21:17:54 +0800
Subject: [PATCH] Add libkcapi libraries

---
 3rdparty/stunnel/build.sh |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/3rdparty/stunnel/build.sh b/3rdparty/stunnel/build.sh
index f2088fd..12624ae 100755
--- a/3rdparty/stunnel/build.sh
+++ b/3rdparty/stunnel/build.sh
@@ -11,9 +11,7 @@
 
 LYFTP_SRC=ftp://master.iot-yun.club/src/
 
-if [ -z $CROSSTOOL ] ; then
-   CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi-
-fi
+CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux-
 
 function msg_banner()
 {
@@ -64,14 +62,15 @@
     PACK_SUFIX=tar.gz
 
     if [ -f ${PREFIX_PATH}/bin/stunnel ] ; then
+        msg_banner "$SRC_NAME already compile and installed"
         return 0;
     fi
 
     msg_banner "Start cross compile $SRC_NAME "
 
     if [ ! -f ${SRC_NAME}.${PACK_SUFIX} ] ; then
-        wget http://www.usenix.org.uk/mirrors/stunnel/${SRC_NAME}.${PACK_SUFIX}
-        #wget ${LYFTP_SRC}/${SRC_NAME}.${PACK_SUFIX}
+        #wget http://www.usenix.org.uk/mirrors/stunnel/${SRC_NAME}.${PACK_SUFIX}
+        wget ${LYFTP_SRC}/${SRC_NAME}.${PACK_SUFIX}
 
         check_result "ERROR: download ${SRC_NAME} failure"
     fi

--
Gitblit v1.9.1