LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2024-10-29 ba226d945dd784aa21c70584c464a11e890d2b90
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