X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/5d0fe69b2592f3c19fd12529ad94cb64ec0ed7d1..refs/heads/master:/FUSEISO/build.sh?ds=inline diff --git a/FUSEISO/build.sh b/FUSEISO/build.sh index af510d0..45617c2 100644 --- a/FUSEISO/build.sh +++ b/FUSEISO/build.sh @@ -11,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"