We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d09c43b commit dde645fCopy full SHA for dde645f
Makefile
@@ -19,11 +19,17 @@ INCLUDES=-Isrc -Iinclude/rtc -Iinclude -I$(PLOG_DIR)/include -I$(USRSCTP_DIR)/us
19
LDLIBS=
20
21
USE_GNUTLS ?= 0
22
+USE_MBEDTLS ?= 0
23
ifneq ($(USE_GNUTLS), 0)
- CPPFLAGS+=-DUSE_GNUTLS=1
24
+ifneq ($(USE_MBEDTLS), 0)
25
+$(error Both USE_MBEDTLS and USE_GNUTLS cannot be enabled at the same time)
26
+endif
27
+ CPPFLAGS+=-DUSE_GNUTLS=1
28
LIBS+=gnutls
29
+else ifneq ($(USE_MBEDTLS), 0)
30
+ CPPFLAGS+=-DUSE_MBEDTLS=1
31
+ LIBS+=mbedtls
32
else
- CPPFLAGS+=-DUSE_GNUTLS=0
33
LIBS+=openssl
34
SRTP_CONFIGURE_FLAGS+=--enable-openssl
35
endif
0 commit comments