LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2024-09-25 e8d34d11799fc79c7c53bdcd40f9b4ee7be7a2c5
openlibs/appweb/build.sh
@@ -53,7 +53,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
@@ -93,15 +93,15 @@
    --enable-sockets --enable-track-vars --enable-trans-sid -enable-wddx --sysconfdir=/apps/appWeb/etc --with-pic \
    --with-db --with-regex=system --with-pear --without-zlib --without-iconv --disable-dom --disable-libxml \
    --disable-simplexml --disable-xml --disable-wddx --disable-xmlreader --without-xmlrpc --disable-xmlwriter \
    --with-config-file-path=/apps/appweb
    --with-config-file-path=/apps/appweb
    check_result "ERROR: configure ${SRC_NAME} failure"
    export LDFLAGS+="-lpthread -ldl"
    export LDFLAGS+="-lpthread -ldl"
    make  && make install
    check_result "ERROR: compile ${SRC_NAME} failure"
    # install and clear PHP
    ${STRIP} ${PREFIX_PATH}/lib/libphp5.so
    ${STRIP} ${PREFIX_PATH}/lib/libphp5.so
    cp -rf $PREFIX_PATH/lib/libphp5.so $PREFIX_PATH/modules
    rm -rf ${PREFIX_PATH}/bin/*
    rm -rf $PREFIX_PATH/include
@@ -139,7 +139,7 @@
    --enable-test --enable-send --enable-upload --enable-file --enable-regex --with-php=${PRJ_PATH}/${PHP_SRC_NAME}
    check_result "ERROR: configure ${SRC_NAME} failure"
    make TRACE=1
    make TRACE=1
    check_result "ERROR: compile ${SRC_NAME} failure"
@@ -180,7 +180,7 @@
./bin/appweb --config appweb.conf &
EOF
    chmod 755 run.sh
    chmod 755 run.sh
    mv run.sh $PREFIX_PATH/
    tar -cjf ${TARBALL} `basename $PREFIX_PATH`
@@ -190,6 +190,18 @@
    fi
}
function do_clean()
{
    rm -rf appweb* php*
}
if [[ $# == 1 && $1 == -c ]] ;then
    echo "start clean ${LIB_NAME}"
    do_clean
    exit;
fi
exit;
export_cross