| 1 |
diff --git a/src/runtime/Makefile b/src/runtime/Makefile |
| 2 |
index 1776c19..6207731 100644 |
| 3 |
--- a/src/runtime/Makefile |
| 4 |
+++ b/src/runtime/Makefile |
| 5 |
@@ -1,12 +1,12 @@ |
| 6 |
GIT_COMMIT := $(shell cat version) |
| 7 |
-CC = clang |
| 8 |
-CFLAGS = -std=gnu99 -Os -D_FILE_OFFSET_BITS=64 -DGIT_COMMIT=\"$(GIT_COMMIT)\" -T data_sections.ld -ffunction-sections -fdata-sections -Wl,--gc-sections -static -Wall -Werror -static-pie |
| 9 |
-LIBS = -lsquashfuse -lsquashfuse_ll -lzstd -lz -lfuse3 |
| 10 |
+CC = gcc |
| 11 |
+CFLAGS = -std=gnu99 -Os -D_FILE_OFFSET_BITS=64 -DGIT_COMMIT=\"$(GIT_COMMIT)\" -T data_sections.ld -ffunction-sections -fdata-sections -Wl,--gc-sections -static -Wall |
| 12 |
+LIBS = -lsquashfuse -lsquashfuse_ll -lzstd -lfuse3 -lpthread |
| 13 |
|
| 14 |
all: runtime |
| 15 |
|
| 16 |
runtime: runtime.c |
| 17 |
- $(CC) -I/usr/local/include/squashfuse -I/usr/include/fuse3 $(CFLAGS) $^ $(LIBS) -o $@ |
| 18 |
+ $(CC) -L${host_prefix}/lib -I${host_prefix}/include -I${host_prefix}/squashfuse -I${host_prefix}/include/fuse3 $(CFLAGS) $^ $(LIBS) -o $@ |
| 19 |
|
| 20 |
clean: |
| 21 |
rm -f runtime |