gen_sdk_package_pbzx.sh: Build pbzx with -O2 and -Wall

This commit is contained in:
Thomas Pöchtrager 2021-07-17 12:07:28 +02:00
parent 5bfab91407
commit bce9988c71

View File

@ -27,7 +27,8 @@ get_sources https://github.com/tpoechtrager/pbzx.git master
if [ $f_res -eq 1 ]; then
pushd $CURRENT_BUILD_PROJECT_NAME &>/dev/null
mkdir -p $TARGET_DIR_SDK_TOOLS/bin
verbose_cmd $CC -I $TARGET_DIR/include -L $TARGET_DIR/lib pbzx.c \
verbose_cmd $CC -O2 -Wall \
-I $TARGET_DIR/include -L $TARGET_DIR/lib pbzx.c \
-o $TARGET_DIR_SDK_TOOLS/bin/pbzx -llzma -lxar \
-Wl,-rpath,$TARGET_DIR/lib
build_success