]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - ExFAT/buidexfat.sh
1.0.07 release
[Ventoy.git] / ExFAT / buidexfat.sh
1 #!/bin/bash
2 #
3 # For 32bit, for example CentOS 6.10 i386
4 # automake 1.11.1 must update to automake 1.11.2
5 # pkg-config must be installed
6 #
7 #
8
9 if uname -a | egrep -q 'x86_64|amd64'; then
10 opt=
11 else
12 opt=-lrt
13 fi
14
15 CUR="$PWD"
16
17 if ! [ -e LIBFUSE ]; then
18 ./buidlibfuse.sh
19 fi
20
21
22 rm -f EXFAT/shared/*
23 rm -f EXFAT/static/*
24
25
26 rm -rf exfat-1.3.0
27 unzip exfat-1.3.0.zip
28
29
30 cd exfat-1.3.0
31 autoreconf --install
32 ./configure --prefix="$CUR" CFLAGS='-static -O2 -D_FILE_OFFSET_BITS=64' FUSE_CFLAGS="-I$CUR/LIBFUSE/include/" FUSE_LIBS="$CUR/LIBFUSE/lib/libfuse.a -pthread $opt -ldl"
33 make
34
35 strip --strip-all fuse/mount.exfat-fuse
36 strip --strip-all mkfs/mkexfatfs
37
38 cp fuse/mount.exfat-fuse ../EXFAT/static/mount.exfat-fuse
39 cp mkfs/mkexfatfs ../EXFAT/static/mkexfatfs
40
41 cd ..
42 rm -rf exfat-1.3.0
43
44 unzip exfat-1.3.0.zip
45
46 cd exfat-1.3.0
47 autoreconf --install
48 ./configure --prefix="$CUR" CFLAGS='-O2 -D_FILE_OFFSET_BITS=64' FUSE_CFLAGS="-I$CUR/LIBFUSE/include/" FUSE_LIBS="$CUR/LIBFUSE/lib/libfuse.a -lpthread -ldl $opt"
49 make
50
51 strip --strip-all fuse/mount.exfat-fuse
52 strip --strip-all mkfs/mkexfatfs
53
54 cp fuse/mount.exfat-fuse ../EXFAT/shared/mount.exfat-fuse
55 cp mkfs/mkexfatfs ../EXFAT/shared/mkexfatfs
56
57 cd ..
58 rm -rf exfat-1.3.0
59
60
61
62