X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/cd4a5fcb0685b8a12915d22efc5c1e0cc8b40d9b..daeb96ce800c0bef40f3a70ef0e1c27ac2b694ea:/FUSEISO/build.sh diff --git a/FUSEISO/build.sh b/FUSEISO/build.sh index 17950ad..45617c2 100644 --- a/FUSEISO/build.sh +++ b/FUSEISO/build.sh @@ -2,8 +2,7 @@ CUR="$PWD" -#LIBFUSE_DIR=$CUR/LIBFUSE -LIBFUSE_DIR=../ExFAT/LIBFUSE +LIBFUSE_DIR=$CUR/LIBFUSE if uname -a | egrep -q 'x86_64|amd64'; then name=vtoy_fuse_iso_64 @@ -12,10 +11,16 @@ else opt=-lrt fi +# +# use musl-c to build for x86_64 +# + export C_INCLUDE_PATH=$LIBFUSE_DIR/include rm -f $name -gcc -static -O2 -D_FILE_OFFSET_BITS=64 vtoy_fuse_iso.c -o $name $LIBFUSE_DIR/lib/libfuse.a -lpthread -ldl $opt +gcc -specs "/usr/local/musl/lib/musl-gcc.specs" -static -O2 -D_FILE_OFFSET_BITS=64 vtoy_fuse_iso.c $LIBFUSE_DIR/lib/libfuse.a -o $name + +strip --strip-all $name if [ -e $name ]; then echo -e "\n############### SUCCESS $name ##################\n"