X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/2aae096c2aac382bb9e7851fed14d207bf016f1e..c8dc36a5c3bb042d92a04304caaa7fa7249d9d2e:/FUSEISO/build.sh?ds=sidebyside 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"