diff --git a/ChangeLog.txt b/ChangeLog.txt index e46f537975..c8c914e10b 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -32,6 +32,9 @@ Clients: - mosquitto_sub and mosquitto_rr now open stdout in binary mode on Windows so binary payloads are not modified when printing. +Build: +- Fix installation using WITH_TLS=no. Closes #2281. + 2.0.11 - 2021-06-08 =================== diff --git a/apps/mosquitto_passwd/Makefile b/apps/mosquitto_passwd/Makefile index 3238cf3e25..1fbf5e1257 100644 --- a/apps/mosquitto_passwd/Makefile +++ b/apps/mosquitto_passwd/Makefile @@ -37,8 +37,10 @@ password_mosq.o : ../../src/password_mosq.c ../../src/password_mosq.h ${CROSS_COMPILE}${CC} $(APP_CPPFLAGS) $(APP_CFLAGS) -c $< -o $@ install : all +ifeq ($(WITH_TLS),yes) $(INSTALL) -d "${DESTDIR}$(prefix)/bin" $(INSTALL) ${STRIP_OPTS} mosquitto_passwd "${DESTDIR}${prefix}/bin/mosquitto_passwd" +endif uninstall : -rm -f "${DESTDIR}${prefix}/bin/mosquitto_passwd"