]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - FUSEISO/build_libfuse.sh
VentoyPlugson: Fix the garbled preview json for unicode characters.
[Ventoy.git] / FUSEISO / build_libfuse.sh
1 #!/bin/bash
2
3 #
4 #
5 # Package Dependency:
6 # gcc automake autoconf gettext gettext-devel libtool unzip
7 #
8 #
9
10 # use mini-native-x86_64 UCLIBC to build for x86_64
11
12
13 CUR="$PWD"
14 LIBFUSE_DIR=$CUR/LIBFUSE
15
16 rm -rf libfuse
17 rm -rf $LIBFUSE_DIR
18
19 # please download https://codeload.github.com/libfuse/libfuse/zip/fuse-2.9.9
20 if [ -e ../ExFAT/mirrors-libfuse-fuse-2.9.9.zip ]; then
21 rm -rf libfuse
22 unzip ../ExFAT/mirrors-libfuse-fuse-2.9.9.zip
23 cd libfuse
24 elif [ -e ../ExFAT/libfuse-fuse-2.9.9.zip ]; then
25 rm -rf libfuse-fuse-2.9.9
26 unzip ../ExFAT/libfuse-fuse-2.9.9.zip
27 cd libfuse-fuse-2.9.9
28 else
29 echo "Please download mirrors-libfuse-fuse-2.9.9.zip first"
30 exit 1
31 fi
32
33
34 ./makeconf.sh
35
36 ./configure --prefix="$LIBFUSE_DIR" CFLAGS='-specs /usr/local/musl/lib/musl-gcc.specs'
37 make -j 16
38 make install
39 cd ..
40 rm -rf libfuse