gentoo-ebuilds/net-misc/zerotier/files/zerotier-1.16.0-minimise-deps-for-controller.patch
Alfred Wingate d4debb1e58
net-misc/zerotier: drop build time requirement for postgreqsql and friends
Bug: https://bugs.gentoo.org/964715
Part-of: https://github.com/gentoo/gentoo/pull/44827
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
2025-11-30 20:51:02 +00:00

18 lines
1,019 B
Diff

https://bugs.gentoo.org/964715
diff --git a/make-linux.mk b/make-linux.mk
index 5ac8a7d95..1a0de0163 100644
--- a/make-linux.mk
+++ b/make-linux.mk
@@ -348,9 +348,8 @@ endif
ifeq ($(ZT_CONTROLLER),1)
override CXXFLAGS+=-Wall -Wno-deprecated -std=c++17 -pthread $(INCLUDES) -DNDEBUG $(DEFS)
- override LDLIBS+=-Lext/libpqxx-7.7.3/install/ubuntu22.04/$(EXT_ARCH)/lib -lpqxx -lpq ext/hiredis-1.0.2/lib/ubuntu22.04/$(EXT_ARCH)/libhiredis.a ext/redis-plus-plus-1.3.3/install/ubuntu22.04/$(EXT_ARCH)/lib/libredis++.a -lssl -lcrypto
- override DEFS+=-DZT_CONTROLLER_USE_LIBPQ -DZT_NO_PEER_METRICS -DZT_OPENTELEMETRY_ENABLED
- override INCLUDES+=-I/usr/include/postgresql -Iext/libpqxx-7.7.3/install/ubuntu22.04/$(EXT_ARCH)/include -Iext/hiredis-1.0.2/include/ -Iext/redis-plus-plus-1.3.3/install/ubuntu22.04/$(EXT_ARCH)/include/sw/
+ override LDLIBS+=-lssl -lcrypto
+ override DEFS+=-DZT_NO_PEER_METRICS -DZT_OPENTELEMETRY_ENABLED
ifeq ($(ZT_DEBUG),1)
override LDLIBS+=rustybits/target/debug/libsmeeclient.a
else