]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - FUSEISO/build.sh
fixed russian translation (#2190)
[Ventoy.git] / FUSEISO / build.sh
index af510d022c4da10c970547ee2c765dadbc9e53b5..45617c2dcdfda37db9533e84d4d9e7e85dfff29e 100644 (file)
@@ -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"