2023-10-16 14:02:13 +00:00
|
|
|
diff --git a/src/runtime/Makefile b/src/runtime/Makefile
|
|
|
|
index d0cbf1f..905b130 100644
|
2023-03-30 09:48:09 +00:00
|
|
|
--- a/src/runtime/Makefile
|
|
|
|
+++ b/src/runtime/Makefile
|
2023-10-16 14:02:13 +00:00
|
|
|
@@ -1,21 +1,21 @@
|
2023-03-30 09:48:09 +00:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -std=gnu99 -s -Os -D_FILE_OFFSET_BITS=64 -DGIT_COMMIT=\"${GIT_COMMIT}\" -T data_sections.ld -ffunction-sections -fdata-sections -Wl,--gc-sections -static
|
|
|
|
-LIBS = -lsquashfuse -lsquashfuse_ll -lzstd -lz
|
|
|
|
+LIBS = -lsquashfuse -lsquashfuse_ll -lzstd -lpthread
|
|
|
|
|
2023-10-16 14:02:13 +00:00
|
|
|
all: runtime-fuse3 runtime-fuse3
|
2023-03-30 09:48:09 +00:00
|
|
|
|
|
|
|
# Compile runtime
|
2023-10-16 14:02:13 +00:00
|
|
|
runtime-fuse3.o: runtime.c
|
|
|
|
- $(CC) -I/usr/local/include/squashfuse -I/usr/include/fuse -o runtime-fuse3.o -c $(CFLAGS) $^
|
|
|
|
+ $(CC) -I${host_prefix}/include -I${host_prefix}/include/squashfuse -I${host_prefix}/include/fuse -o runtime-fuse3.o -c $(CFLAGS) $^
|
2023-03-30 09:48:09 +00:00
|
|
|
|
2023-10-16 14:02:13 +00:00
|
|
|
runtime-fuse3: runtime-fuse3.o
|
|
|
|
$(CC) $(CFLAGS) $^ $(LIBS) -lfuse -o runtime-fuse3
|
2023-03-30 09:48:09 +00:00
|
|
|
|
|
|
|
runtime-fuse3.o: runtime.c
|
2023-10-16 14:02:13 +00:00
|
|
|
- $(CC) -I/usr/local/include/squashfuse -I/usr/include/fuse3 -o runtime-fuse3.o -c $(CFLAGS) $^
|
|
|
|
+ $(CC) -I${host_prefix}/include -I${host_prefix}/include/squashfuse -I${host_prefix}/include/fuse3 -o runtime-fuse3.o -c $(CFLAGS) $^
|
|
|
|
|
|
|
|
runtime-fuse3: runtime-fuse3.o
|
|
|
|
- $(CC) $(CFLAGS) $^ $(LIBS) -lfuse3 -o runtime-fuse3
|
|
|
|
+ $(CC) $(CFLAGS) $^ -L${host_prefix}/lib $(LIBS) -lfuse3 -lpthread -o runtime-fuse3
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o runtime-fuse3 runtime-fuse3
|