mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 04:52:06 +03:00
Link with libcurl
This commit is contained in:
parent
3434f2bd9c
commit
8d43f39a4a
8
Makefile
8
Makefile
@ -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 \
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <ctype.h>
|
||||
#include <sigsegv.h>
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include "all.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user