Optimize build script.

This commit is contained in:
longpanda
2026-10-12 18:31:51 +08:00
parent 06037474e6
commit 8dde4cd56f
8 changed files with 42 additions and 6 deletions
+5
View File
@@ -15,6 +15,10 @@ fi
# use musl-c to build for x86_64
#
if [ ! -d $LIBFUSE_DIR ]; then
sh build_libfuse.sh
fi
export C_INCLUDE_PATH=$LIBFUSE_DIR/include
rm -f $name
@@ -30,3 +34,4 @@ fi
strip --strip-all $name
rm -rf $LIBFUSE_DIR
+6
View File
@@ -8,6 +8,11 @@ name=vtoy_fuse_iso_aa64
export C_INCLUDE_PATH=$LIBFUSE_DIR/include
if [ ! -d $LIBFUSE_DIR ]; then
sh build_libfuse_aarch64.sh
fi
rm -f $name
aarch64-buildroot-linux-uclibc-gcc -static -O2 -D_FILE_OFFSET_BITS=64 vtoy_fuse_iso.c -o $name $LIBFUSE_DIR/lib/libfuse.a
@@ -19,3 +24,4 @@ fi
aarch64-buildroot-linux-uclibc-strip --strip-all $name
rm -rf $LIBFUSE_DIR
+2 -1
View File
@@ -33,8 +33,9 @@ fi
./makeconf.sh
./configure --prefix="$LIBFUSE_DIR" CFLAGS='-specs /usr/local/musl/lib/musl-gcc.specs'
./configure --prefix="$LIBFUSE_DIR" CFLAGS='-specs /usr/local/musl/lib/musl-gcc.specs' --disable-example
make -j 16
make install
cd ..
rm -rf libfuse
+1 -1
View File
@@ -37,7 +37,7 @@ sed '/#define *__s64/d' -i include/fuse_kernel.h
sed 's/__u64/uint64_t/g' -i include/fuse_kernel.h
sed 's/__s64/int64_t/g' -i include/fuse_kernel.h
./configure --prefix="$LIBFUSE_DIR" --host=aarch64 CC=aarch64-buildroot-linux-uclibc-gcc
./configure --prefix="$LIBFUSE_DIR" --host=aarch64 --disable-example CC=aarch64-buildroot-linux-uclibc-gcc
make -j 16