]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - FUSEISO/build.sh
1. change some directory structure for the build script
[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 export C_INCLUDE_PATH=$LIBFUSE_DIR/include
15
16 rm -f $name
17 gcc -static -O2 -D_FILE_OFFSET_BITS=64 vtoy_fuse_iso.c -o $name $LIBFUSE_DIR/lib/libfuse.a -lpthread -ldl $opt
18
19 if [ -e $name ]; then
20 echo -e "\n############### SUCCESS $name ##################\n"
21 else
22 echo -e "\n############### FAILED $name ##################\n"
23 fi
24
25 strip --strip-all $name
26