From 8abab3cd2d5c9e4be6aac3e2e31af7f5cf282ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 10 Oct 2022 16:15:45 +0800 Subject: Fix crash on Android when calling libcurl functions Linking on the library level must still be done even though it compiles without it, to ensure that it doesn't crash on platforms like Android. --- Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 19549fd..73a26bd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,9 +10,10 @@ if WASM libinterchange_la_LDFLAGS = -static else libinterchange_la_CPPFLAGS = $(CURL_CFLAGS) +libinterchange_la_LDFLAGS = $(CURL_LIBS) endif if IOS -libinterchange_la_LDFLAGS = -static +libinterchange_la_LDFLAGS += -static endif if STRAP libinterchange_la_SOURCES += strap.c -- cgit v1.2.3