This repository was archived by the owner on Dec 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ BUILD_TYPE ?= "RelWithDebInfo"
17
17
FLAGS ?=
18
18
USE_HTTPS ?= OFF
19
19
USE_SSH ?= OFF
20
+ USE_BUNDLED_ZLIB ?= OFF
20
21
BUILD_SHARED_LIBS ?= ON
21
22
22
23
# Cmake version to be installed.
@@ -66,20 +67,25 @@ ifeq (debian,$(XX_VENDOR))
66
67
# certain key formats).
67
68
# Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668271
68
69
# Ref: https://github.com/ARMmbed/mbedtls/issues/2452#issuecomment-802683144
69
- DEPENDENCIES = zlib1g-dev
70
+ DEPENDENCIES =
71
+ ifneq ("OFF",$(USE_BUNDLED_ZLIB ) )
72
+ DEPENDENCIES += zlib1g-dev
73
+ endif
70
74
ifneq ("OFF",$(USE_HTTPS ) )
71
75
DEPENDENCIES += libssl-dev
72
76
endif
73
77
ifneq ("OFF",$(USE_SSH ) )
74
78
DEPENDENCIES += libssh2-1-dev
75
79
endif
76
80
dependencies :
81
+ ifneq ("",$(DEPENDENCIES ) )
77
82
set -e; \
78
83
echo "deb http://deb.debian.org/debian sid main" > /etc/apt/sources.list.d/sid.list \
79
84
&& echo "deb-src http://deb.debian.org/debian sid main" /etc/apt/sources.list.d/sid.list \
80
85
&& xx-apt update \
81
86
&& xx-apt -t sid install --no-install-recommends -y $(DEPENDENCIES)
82
87
endif
88
+ endif
83
89
.PHONY : dependencies
84
90
85
91
libgit2 : $(LIBGIT2 )
You can’t perform that action at this time.
0 commit comments