net/zerotier: fix broken dependency detection
Signed-off-by: Moritz Warning <moritzwarning@web.de>
This commit is contained in:
parent
3b73eb19b0
commit
6addfe52ea
1 changed files with 33 additions and 18 deletions
|
@ -7,30 +7,45 @@ Subject: [PATCH 2/2] fix build
|
||||||
make-linux.mk | 30 +++++++++++++++---------------
|
make-linux.mk | 30 +++++++++++++++---------------
|
||||||
1 file changed, 15 insertions(+), 15 deletions(-)
|
1 file changed, 15 insertions(+), 15 deletions(-)
|
||||||
|
|
||||||
Index: ZeroTierOne-1.1.14/make-linux.mk
|
--- a/make-linux.mk
|
||||||
===================================================================
|
+++ b/make-linux.mk
|
||||||
--- ZeroTierOne-1.1.14.orig/make-linux.mk
|
@@ -39,24 +39,24 @@ include objects.mk
|
||||||
+++ ZeroTierOne-1.1.14/make-linux.mk
|
|
||||||
@@ -39,19 +39,19 @@ include objects.mk
|
|
||||||
|
|
||||||
# On Linux we auto-detect the presence of some libraries and if present we
|
# On Linux we auto-detect the presence of some libraries and if present we
|
||||||
# link against the system version. This works with our package build images.
|
# link against the system version. This works with our package build images.
|
||||||
-ifeq ($(wildcard /usr/include/lz4.h),)
|
-ifeq ($(wildcard /usr/include/lz4.h),)
|
||||||
+ifeq ($(wildcard $(STAGING_DIR)/usr/include/lz4.h),)
|
+#ifeq ($(wildcard $(STAGING_DIR)/usr/include/lz4.h),)
|
||||||
OBJS+=ext/lz4/lz4.o
|
OBJS+=ext/lz4/lz4.o
|
||||||
else
|
-else
|
||||||
LDLIBS+=-llz4
|
- LDLIBS+=-llz4
|
||||||
DEFS+=-DZT_USE_SYSTEM_LZ4
|
- DEFS+=-DZT_USE_SYSTEM_LZ4
|
||||||
endif
|
-endif
|
||||||
-ifeq ($(wildcard /usr/include/http_parser.h),)
|
-ifeq ($(wildcard /usr/include/http_parser.h),)
|
||||||
+ifeq ($(wildcard $(STAGING_DIR)/usr/include/http_parser.h),)
|
+#else
|
||||||
|
+# LDLIBS+=-llz4
|
||||||
|
+# DEFS+=-DZT_USE_SYSTEM_LZ4
|
||||||
|
+#endif
|
||||||
|
+#ifeq ($(wildcard $(STAGING_DIR)/usr/include/http_parser.h),)
|
||||||
OBJS+=ext/http-parser/http_parser.o
|
OBJS+=ext/http-parser/http_parser.o
|
||||||
else
|
-else
|
||||||
LDLIBS+=-lhttp_parser
|
- LDLIBS+=-lhttp_parser
|
||||||
DEFS+=-DZT_USE_SYSTEM_HTTP_PARSER
|
- DEFS+=-DZT_USE_SYSTEM_HTTP_PARSER
|
||||||
endif
|
-endif
|
||||||
-ifeq ($(wildcard /usr/include/json-parser/json.h),)
|
-ifeq ($(wildcard /usr/include/json-parser/json.h),)
|
||||||
+ifeq ($(wildcard $(STAGING_DIR)/usr/include/json-parser/json.h),)
|
+#else
|
||||||
|
+# LDLIBS+=-lhttp_parser
|
||||||
|
+# DEFS+=-DZT_USE_SYSTEM_HTTP_PARSER
|
||||||
|
+#endif
|
||||||
|
+#ifeq ($(wildcard $(STAGING_DIR)/usr/include/json-parser/json.h),)
|
||||||
OBJS+=ext/json-parser/json.o
|
OBJS+=ext/json-parser/json.o
|
||||||
else
|
-else
|
||||||
LDLIBS+=-ljsonparser
|
- LDLIBS+=-ljsonparser
|
||||||
|
- DEFS+=-DZT_USE_SYSTEM_JSON_PARSER
|
||||||
|
-endif
|
||||||
|
+#else
|
||||||
|
+# LDLIBS+=-ljsonparser
|
||||||
|
+# DEFS+=-DZT_USE_SYSTEM_JSON_PARSER
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
ifeq ($(ZT_USE_MINIUPNPC),1)
|
||||||
|
OBJS+=osdep/PortMapper.o
|
||||||
|
|
Loading…
Reference in a new issue