Skip to content

Commit 6d0d921

Browse files
committed
fix(build): add static linking flags for Linux to improve compatibility
1 parent fd617e6 commit 6d0d921

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ else ifeq ($(PLATFORM),isim)
252252
STRIP = strip -x -S $@
253253
else # linux
254254
TARGET := $(DIST_DIR)/ai.so
255-
LDFLAGS += -shared
255+
LDFLAGS += -shared -static-libgcc -static-libstdc++
256256
MINIAUDIO_LDFLAGS += -lpthread -lm
257257
LLAMA_OPTIONS += -DGGML_OPENMP=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON
258258
WHISPER_OPTIONS += -DGGML_OPENMP=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON

0 commit comments

Comments
 (0)