From e8d34d11799fc79c7c53bdcd40f9b4ee7be7a2c5 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 25 Sep 2024 17:42:22 +0800
Subject: [PATCH] Merge branch 'master' of ssh://weike-iot.com:2280/framwork
---
openlibs/glib/build.sh | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/openlibs/glib/build.sh b/openlibs/glib/build.sh
index c1f5606..df02ff8 100755
--- a/openlibs/glib/build.sh
+++ b/openlibs/glib/build.sh
@@ -48,7 +48,7 @@
export OBJDUMP=${CROSS_COMPILE}objdump
export STRIP=${CROSS_COMPILE}strip
- # export cross configure
+ # export cross configure
export CONFIG_CROSS=" --build=i686-pc-linux --host=arm-linux "
# Clear LDFLAGS and CFLAGS
@@ -68,7 +68,7 @@
fi
msg_banner "Start donwload $SRC_NAME "
- if [ ! -f ${SRC_NAME}.${PACK_SUFIX} ] ; then
+ if [ ! -f ${SRC_NAME}.${PACK_SUFIX} ] ; then
#wget ftp://sourceware.org/pub/libffi/${SRC_NAME}.${PACK_SUFIX}
wget ${LYFTP_SRC}/${SRC_NAME}.${PACK_SUFIX}
check_result "ERROR: download ${SRC_NAME} failure"
@@ -79,7 +79,7 @@
msg_banner "Start cross compile $SRC_NAME "
- ./configure --prefix=${PREFIX_PATH} ${CONFIG_CROSS}
+ ./configure --prefix=${PREFIX_PATH} ${CONFIG_CROSS}
check_result "ERROR: configure ${SRC_NAME} failure"
@@ -137,6 +137,19 @@
cd -
}
+function do_clean()
+{
+ rm -rf libffi* glib*
+}
+
+if [[ $# == 1 && $1 == -c ]] ;then
+ echo "start clean ${LIB_NAME}"
+ do_clean
+ exit;
+fi
+
+exit
+
export_cross
compile_libffi
--
Gitblit v1.9.1