commit 41366ba583a292608fee940fdc46cb6b9948b73f
parent 34e3ba1318b28424132ddd70ccd8c9253241904e
Author: Joris Vink <joris@coders.se>
Date: Tue, 14 May 2019 20:53:27 +0200
avoid using pkg-config on FreeBSD for CURL=1.
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -105,6 +105,12 @@ ifneq ("$(PYTHON)", "")
FEATURES_INC+=$(KORE_PYTHON_INC)
endif
+OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
+ifeq ("$(OSNAME)", "freebsd")
+ KORE_CURL_LIB=-L/usr/local/lib -lcurl
+ KORE_CURL_INC=-I/usr/local/include
+endif
+
ifneq ("$(CURL)", "")
S_SRC+=src/curl.c
KORE_CURL_LIB?=$(shell pkg-config --libs libcurl)
@@ -120,7 +126,6 @@ ifneq ("$(SANITIZE)", "")
LDFLAGS+=-fsanitize=$(SANITIZE)
endif
-OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
ifeq ("$(OSNAME)", "darwin")
CFLAGS+=-I/opt/local/include/ -I/usr/local/opt/openssl/include
LDFLAGS+=-L/opt/local/lib -L/usr/local/opt/openssl/lib