aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/Makefile
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2021-06-30 19:41:13 +0200
committercbdev <cb@cbcdn.com>2021-06-30 19:41:13 +0200
commit48880cb18dded1d95d52aec5bae55ff31dcf2ad5 (patch)
tree849f6c18a6f2da41ca337c11507f58fed26d67f4 /backends/Makefile
parentf16f7db86662fcdbf45b6373257c90c824b0b4b0 (diff)
downloadmidimonster-48880cb18dded1d95d52aec5bae55ff31dcf2ad5.tar.gz
midimonster-48880cb18dded1d95d52aec5bae55ff31dcf2ad5.tar.bz2
midimonster-48880cb18dded1d95d52aec5bae55ff31dcf2ad5.zip
Add OSX CI target, fix OSX build
Diffstat (limited to 'backends/Makefile')
-rw-r--r--backends/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/Makefile b/backends/Makefile
index be870d6..35782ab 100644
--- a/backends/Makefile
+++ b/backends/Makefile
@@ -60,7 +60,10 @@ openpixelcontrol.dll: ADDITIONAL_OBJS += $(BACKEND_LIB)
openpixelcontrol.dll: LDLIBS += -lws2_32
maweb.so: ADDITIONAL_OBJS += $(BACKEND_LIB)
-maweb.so: LDLIBS = $(shell pkg-config --libs openssl || echo "-DBUILD_ERROR=\"Missing pkg-config data for openssl\"")
+# On OSX, the system provides libressl but no pkg-config data.
+# Brew provides OpenSSL v1.1, but with a mangled path and no clear way to find it
+# Give up and just default to -lcrypto for the time being...
+maweb.so: LDLIBS = $(shell pkg-config --libs openssl || echo "-lcrypto")
maweb.dll: ADDITIONAL_OBJS += $(BACKEND_LIB)
maweb.dll: LDLIBS += -lws2_32
maweb.dll: CFLAGS += -DMAWEB_NO_LIBSSL