2020-04-04 16:07:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Package Dependency:
|
|
|
|
# gcc automake autoconf gettext gettext-devel libtool unzip
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2020-12-11 23:56:52 +00:00
|
|
|
# use mini-native-x86_64 UCLIBC to build for x86_64
|
|
|
|
|
2020-04-04 16:07:50 +00:00
|
|
|
|
|
|
|
CUR="$PWD"
|
|
|
|
LIBFUSE_DIR=$CUR/LIBFUSE
|
|
|
|
|
|
|
|
rm -rf libfuse
|
|
|
|
rm -rf $LIBFUSE_DIR
|
|
|
|
|
2020-05-21 04:46:10 +00:00
|
|
|
# please download https://codeload.github.com/libfuse/libfuse/zip/fuse-2.9.9
|
|
|
|
if [ -e ../ExFAT/mirrors-libfuse-fuse-2.9.9.zip ]; then
|
|
|
|
rm -rf libfuse
|
|
|
|
unzip ../ExFAT/mirrors-libfuse-fuse-2.9.9.zip
|
|
|
|
cd libfuse
|
|
|
|
elif [ -e ../ExFAT/libfuse-fuse-2.9.9.zip ]; then
|
|
|
|
rm -rf libfuse-fuse-2.9.9
|
|
|
|
unzip ../ExFAT/libfuse-fuse-2.9.9.zip
|
|
|
|
cd libfuse-fuse-2.9.9
|
|
|
|
else
|
2020-04-04 16:07:50 +00:00
|
|
|
echo "Please download mirrors-libfuse-fuse-2.9.9.zip first"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
./makeconf.sh
|
|
|
|
|
2021-01-16 15:30:12 +00:00
|
|
|
./configure --prefix="$LIBFUSE_DIR" CFLAGS='-specs /usr/local/musl/lib/musl-gcc.specs'
|
2020-04-04 16:07:50 +00:00
|
|
|
make -j 16
|
|
|
|
make install
|
|
|
|
cd ..
|
|
|
|
rm -rf libfuse
|