Update build shell script to support static library
Signed-off-by: guowenxue <guowenxue@gmail.com>
| | |
| | | |
| | | make && make PREFIX=$PREFIX_PATH install |
| | | check_result "ERROR: compile ${LIB_NAME} failure" |
| | | |
| | | cp libcjson.a $PREFIX_PATH/lib |
| | | } |
| | | |
| | | function do_clean() |
| | |
| | | |
| | | do_export |
| | | |
| | | ./configure --prefix=${PREFIX_PATH} ${CONFIG_CROSS} \ |
| | | ./configure --prefix=${PREFIX_PATH} ${CONFIG_CROSS} --enable-static \ |
| | | --enable-thread-support --enable-openssl --enable-function-sections |
| | | check_result "ERROR: configure ${LIB_NAME} failure" |
| | | |
| | |
| | | |
| | | do_export |
| | | |
| | | ./configure --prefix=${PREFIX_PATH} ${CONFIG_CROSS} \ |
| | | ./configure --prefix=${PREFIX_PATH} ${CONFIG_CROSS} --enable-static \ |
| | | --without-python --without-zlib --without-lzma |
| | | check_result "ERROR: configure ${LIB_NAME} failure" |
| | | |
| | |
| | | export LDFLAGS="-L${PREFIX_PATH}/lib -lcrypto -lssl -ldl -lpthread" |
| | | export DESTDIR=${PREFIX_PATH} |
| | | |
| | | make WITH_UUID=no |
| | | make WITH_UUID=no WITH_STATIC_LIBRARIES=yes |
| | | check_result "ERROR: compile ${LIB_NAME} failure" |
| | | |
| | | make DESTDIR=${PREFIX_PATH} prefix=/ install |
| | | check_result "ERROR: compile ${LIB_NAME} failure" |
| | | |
| | | install -m 755 src/mosquitto $BIN_PATH |
| | | install -m 644 lib/libmosquitto.a $LIB_PATH |
| | | } |
| | | |
| | | function do_clean() |
| | |
| | | |
| | | do_export |
| | | |
| | | ./configure --prefix=${PREFIX_PATH} ${CONFIG_CROSS} \ |
| | | --enable-static --disable-shared --disable-largefile --disable-ipv6 \ |
| | | ./configure --prefix=${PREFIX_PATH} ${CONFIG_CROSS} --enable-static \ |
| | | --disable-shared --disable-largefile --disable-ipv6 \ |
| | | --disable-systemd --disable-libwrap --with-ssl=${PREFIX_PATH} |
| | | check_result "ERROR: configure ${LIB_NAME} failure" |
| | | |