File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 $@
137137else ifeq ($(PLATFORM),ios)
138138 TARGET := $(DIST_DIR)/cloudsync.dylib
@@ -152,8 +152,8 @@ else ifeq ($(PLATFORM),ios-sim)
152152 STRIP = strip -x -S $@
153153else # 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 $@
159159endif
You can’t perform that action at this time.
0 commit comments