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/appweb/build.sh | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/openlibs/appweb/build.sh b/openlibs/appweb/build.sh index 75d6570..a8a812e 100755 --- a/openlibs/appweb/build.sh +++ b/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 -- Gitblit v1.9.1