We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7804775 commit d40bf27Copy full SHA for d40bf27
build.sh
@@ -10,6 +10,9 @@ fi
10
apk update
11
apk add alpine-sdk util-linux strace file autoconf automake libtool
12
13
+# Minimize binary size
14
+export CFLAGS="-ffunction-sections -fdata-sections -Os"
15
+
16
# Build static squashfuse
17
apk add fuse3-dev fuse3-static zstd-dev zlib-dev zlib-static # fuse-static fuse-dev
18
find / -name "libzstd.*" 2>/dev/null || true
@@ -18,7 +21,7 @@ tar xf e51978c.tar.gz
21
cd squashfuse-*/
19
22
./autogen.sh
20
23
./configure --help
-./configure CFLAGS=-no-pie LDFLAGS=-static
24
+./configure CFLAGS="${CFLAGS} -no-pie" LDFLAGS=-static
25
make -j"$(nproc)"
26
make install
27
/usr/bin/install -c -m 644 ./*.h '/usr/local/include/squashfuse' # ll.h
0 commit comments