Skip to content

Commit 2d31db4

Browse files
andinuxclaude
andcommitted
fix(build): link math library for fractional-indexing on Linux/Android
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fffafb1 commit 2d31db4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ else ifeq ($(PLATFORM),android)
132132
CURL_CONFIG = --host $(ARCH)-linux-$(ANDROID_ABI) --with-openssl=$(CURDIR)/$(OPENSSL_INSTALL_DIR) LDFLAGS="-L$(CURDIR)/$(OPENSSL_INSTALL_DIR)/lib" LIBS="-lssl -lcrypto" AR=$(BIN)/llvm-ar AS=$(BIN)/llvm-as CC=$(CC) CXX=$(BIN)/$(ARCH)-linux-$(ANDROID_ABI)-clang++ LD=$(BIN)/ld RANLIB=$(BIN)/llvm-ranlib STRIP=$(BIN)/llvm-strip
133133
TARGET := $(DIST_DIR)/cloudsync.so
134134
CFLAGS += -fPIC -I$(OPENSSL_INSTALL_DIR)/include
135-
LDFLAGS += -shared -fPIC -L$(OPENSSL_INSTALL_DIR)/lib -lssl -lcrypto
135+
LDFLAGS += -shared -fPIC -L$(OPENSSL_INSTALL_DIR)/lib -lssl -lcrypto -lm
136136
STRIP = $(BIN)/llvm-strip --strip-unneeded $@
137137
else ifeq ($(PLATFORM),ios)
138138
TARGET := $(DIST_DIR)/cloudsync.dylib
@@ -152,8 +152,8 @@ else ifeq ($(PLATFORM),ios-sim)
152152
STRIP = strip -x -S $@
153153
else # linux
154154
TARGET := $(DIST_DIR)/cloudsync.so
155-
LDFLAGS += -shared -lssl -lcrypto
156-
T_LDFLAGS += -lpthread
155+
LDFLAGS += -shared -lssl -lcrypto -lm
156+
T_LDFLAGS += -lpthread -lm
157157
CURL_CONFIG = --with-openssl
158158
STRIP = strip --strip-unneeded $@
159159
endif

0 commit comments

Comments
 (0)