Skip to content

Distribute and run LLMs with a single file.

Fix build on recent Ubuntu

Justine Tunney725aa3a486c4
diff --git a/llamafile/BUILD.mk b/llamafile/BUILD.mk
index dcc5e014..32161dfd 100644
--- a/llamafile/BUILD.mk
+++ b/llamafile/BUILD.mk
@@ -44,7 +44,7 @@ o/$(MODE)/llamafile: \
o/$(MODE)/llamafile/%.o: llamafile/%.cu llamafile/BUILD.mk
@mkdir -p $(@D)
- build/cudacc -g -O3 -march=native -c -o $@ $<
+ build/cudacc -fPIE -g -O3 -march=native -c -o $@ $<
o/$(MODE)/llamafile/tinyblas_test: \
o/$(MODE)/llamafile/tinyblas_test.o \