]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - FUSEISO/build.sh
1.1.07 release
[Ventoy.git] / FUSEISO / build.sh
1 #!/bin/bash
2
3 CUR="$PWD"
4
5 LIBFUSE_DIR=$CUR/LIBFUSE
6
7 if uname -a | egrep -q 'x86_64|amd64'; then
8 name=vtoy_fuse_iso_64
9 else
10 name=vtoy_fuse_iso_32
11 opt=-lrt
12 fi
13
14 #
15 # use musl-c to build for x86_64
16 #
17
18 export C_INCLUDE_PATH=$LIBFUSE_DIR/include
19
20 rm -f $name
21 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
22
23 strip --strip-all $name
24
25 if [ -e $name ]; then
26 echo -e "\n############### SUCCESS $name ##################\n"
27 else
28 echo -e "\n############### FAILED $name ##################\n"
29 fi
30
31 strip --strip-all $name
32