Link with libcurl

This commit is contained in:
Raymond Pasco 2016-08-29 14:26:03 -04:00
parent 3434f2bd9c
commit 8d43f39a4a
2 changed files with 7 additions and 2 deletions

View File

@ -47,6 +47,9 @@ ifneq (,$(wildcard /usr/local/opt/openssl/.))
OPENSSLLIB=-L/usr/local/opt/openssl/lib
endif
CURLINC=$(shell curl-config --cflags)
CURLLIB=$(shell curl-config --libs)
RM=rm -f
ifneq ($(UNAME),FreeBSD)
CC=gcc
@ -74,9 +77,9 @@ ifeq ($(OS),bsd)
endif
ifeq ($(STATIC),yes)
LIBS=-lssl -lcrypto -lncurses /usr/local/lib/libsigsegv.a /usr/local/lib/libgmp.a $(OSLIBS)
LIBS=-lssl -lcrypto -lncurses /usr/local/lib/libsigsegv.a /usr/local/lib/libgmp.a $(CURLLIB) $(OSLIBS)
else
LIBS=-lssl -lcrypto -lgmp -lncurses -lsigsegv $(OSLIBS)
LIBS=-lssl -lcrypto -lgmp -lncurses -lsigsegv $(CURLLIB) $(OSLIBS)
endif
INCLUDE=include
@ -108,6 +111,7 @@ CFLAGS= $(COSFLAGS) $(DEBUGFLAGS) -ffast-math \
-I/usr/local/include \
$(OPTLOCALINC) \
$(OPENSSLINC) \
$(CURLINC) \
-I$(INCLUDE) \
-Ioutside/$(LIBUV_VER)/include \
-Ioutside/anachronism/include \

View File

@ -6,6 +6,7 @@
#include <sys/stat.h>
#include <ctype.h>
#include <sigsegv.h>
#include <curl/curl.h>
#include "all.h"