summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index b6fee15..43a977c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,7 +9,13 @@ librtclient_la_SOURCES = \
search.c \
client.c
librtclient_la_CPPFLAGS = -I${prefix}/include
-librtclient_la_LDFLAGS = -L${prefix}/lib -lcurl
+librtclient_la_LDFLAGS = -L${prefix}/lib
+if EMSCRIPTEN
+librtclient_la_LDFLAGS += -static
+else
+librtclient_la_CPPFLAGS += $(CURL_CFLAGS)
+librtclient_la_LDFLAGS += $(CURL_LIBS)
+endif
include_HEADERS = rtclient.h
pkginclude_HEADERS = \
rtclient/user.h \