forked from Telodendria/Telodendria
Don't require the TLS_ in the environment variable.
It's redundant.
This commit is contained in:
parent
fe32c652cd
commit
007e639b0c
1 changed files with 3 additions and 2 deletions
|
@ -34,17 +34,18 @@
|
||||||
|
|
||||||
if [ -n "$TLS_IMPL" ]; then
|
if [ -n "$TLS_IMPL" ]; then
|
||||||
case "$TLS_IMPL" in
|
case "$TLS_IMPL" in
|
||||||
"TLS_LIBRESSL")
|
"LIBRESSL")
|
||||||
TLS_LIBS="-ltls -lcrypto -lssl"
|
TLS_LIBS="-ltls -lcrypto -lssl"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unrecognized TLS implementation: ${TLS_IMPL}"
|
echo "Unrecognized TLS implementation: ${TLS_IMPL}"
|
||||||
echo "Consult src/include/Tls.h for supported implementations."
|
echo "Consult src/include/Tls.h for supported implementations."
|
||||||
|
echo "Note that the TLS_ prefix is omitted in TLS_IMPL."
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
DEFINES="${DEFINES} -DTLS_IMPL=${TLS_IMPL}"
|
DEFINES="${DEFINES} -DTLS_IMPL=TLS_${TLS_IMPL}"
|
||||||
LDFLAGS="${LDFLAGS} ${TLS_LIBS}"
|
LDFLAGS="${LDFLAGS} ${TLS_LIBS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue