summaryrefslogtreecommitdiff
path: root/make-mac.mk
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2020-08-18 11:46:29 -0700
committerGrant Limberg <[email protected]>2020-08-18 11:46:29 -0700
commit81c9db7a1548fa8eb132aaefc47367fbaa6a42d3 (patch)
treece4f9ddd0e7939b77c0c1a1b4b3d102760515133 /make-mac.mk
parent8d0a3563e40b227f46f50cba87cac8dfc5a081b9 (diff)
fix libs for non-controller builds on macOS
Diffstat (limited to 'make-mac.mk')
-rw-r--r--make-mac.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/make-mac.mk b/make-mac.mk
index acf17dd4..f44acabe 100644
--- a/make-mac.mk
+++ b/make-mac.mk
@@ -28,12 +28,13 @@ include objects.mk
ONE_OBJS+=osdep/MacEthernetTap.o osdep/MacKextEthernetTap.o osdep/MacDNSHelper.o ext/http-parser/http_parser.o
ifeq ($(ZT_CONTROLLER),1)
- LIBS+=-L/usr/local/opt/libpq/lib -lpq ext/redis-plus-plus-1.1.1/install/macos/lib/libredis++.a ext/hiredis-0.14.1/lib/macos/libhiredis.a -framework SystemConfiguration -framework CoreFoundation
+ LIBS+=-L/usr/local/opt/libpq/lib -lpq ext/redis-plus-plus-1.1.1/install/macos/lib/libredis++.a ext/hiredis-0.14.1/lib/macos/libhiredis.a
DEFS+=-DZT_CONTROLLER_USE_LIBPQ -DZT_CONTROLLER_USE_REDIS -DZT_CONTROLLER
INCLUDES+=-I/usr/local/opt/libpq/include -Iext/hiredis-0.14.1/include/ -Iext/redis-plus-plus-1.1.1/install/macos/include/sw/
-
endif
+LIBS+=-framework SystemConfiguration -framework CoreFoundation
+
# Official releases are signed with our Apple cert and apply software updates by default
ifeq ($(ZT_OFFICIAL_RELEASE),1)
DEFS+=-DZT_SOFTWARE_UPDATE_DEFAULT="\"apply\""