From 14c45586ac7c9e01cb4745185e698e593773bf08 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 28 Aug 2024 17:52:01 +0800
Subject: [PATCH] update openlibs top build.sh
---
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