diff --git a/ChangeLog.txt b/ChangeLog.txt index 106ef56b..02782d30 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -19,6 +19,10 @@ Broker: Client library: - Fix topic matching edge case. +General: +- Use $(STRIP) for stripping binaries when installing, to allow easier cross + compilation. + 1.3.1 - 20140324 ================ diff --git a/client/Makefile b/client/Makefile index cfd8c76a..af9bb8bf 100644 --- a/client/Makefile +++ b/client/Makefile @@ -24,8 +24,8 @@ client_shared.o : client_shared.c client_shared.h install : all $(INSTALL) -d ${DESTDIR}$(prefix)/bin - $(INSTALL) -s mosquitto_pub ${DESTDIR}${prefix}/bin/mosquitto_pub - $(INSTALL) -s mosquitto_sub ${DESTDIR}${prefix}/bin/mosquitto_sub + $(INSTALL) -s --strip-program=$(STRIP) mosquitto_pub ${DESTDIR}${prefix}/bin/mosquitto_pub + $(INSTALL) -s --strip-program=$(STRIP) mosquitto_sub ${DESTDIR}${prefix}/bin/mosquitto_sub uninstall : -rm -f ${DESTDIR}${prefix}/bin/mosquitto_pub diff --git a/lib/Makefile b/lib/Makefile index 518d4566..5fb35c23 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -24,7 +24,7 @@ all : libmosquitto.so.${SOVERSION} libmosquitto.a install : all $(INSTALL) -d ${DESTDIR}$(prefix)/lib${LIB_SUFFIX}/ - $(INSTALL) -s libmosquitto.so.${SOVERSION} ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquitto.so.${SOVERSION} + $(INSTALL) -s --strip-program=$(STRIP) libmosquitto.so.${SOVERSION} ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquitto.so.${SOVERSION} ln -sf libmosquitto.so.${SOVERSION} ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquitto.so $(INSTALL) -d ${DESTDIR}${prefix}/include/ $(INSTALL) mosquitto.h ${DESTDIR}${prefix}/include/mosquitto.h diff --git a/lib/cpp/Makefile b/lib/cpp/Makefile index 9dc8d809..dc609bd9 100644 --- a/lib/cpp/Makefile +++ b/lib/cpp/Makefile @@ -10,7 +10,7 @@ all : libmosquittopp.so.${SOVERSION} install : all $(INSTALL) -d ${DESTDIR}$(prefix)/lib${LIB_SUFFIX}/ - $(INSTALL) -s libmosquittopp.so.${SOVERSION} ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquittopp.so.${SOVERSION} + $(INSTALL) -s --strip-program=$(STRIP) libmosquittopp.so.${SOVERSION} ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquittopp.so.${SOVERSION} ln -sf libmosquittopp.so.${SOVERSION} ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquittopp.so $(INSTALL) -d ${DESTDIR}${prefix}/include/ $(INSTALL) mosquittopp.h ${DESTDIR}${prefix}/include/mosquittopp.h diff --git a/src/Makefile b/src/Makefile index 5dbf06fa..e3a562de 100644 --- a/src/Makefile +++ b/src/Makefile @@ -100,10 +100,10 @@ mosquitto_passwd.o : mosquitto_passwd.c install : all $(INSTALL) -d ${DESTDIR}$(prefix)/sbin - $(INSTALL) -s mosquitto ${DESTDIR}${prefix}/sbin/mosquitto + $(INSTALL) -s --strip-program=$(STRIP) mosquitto ${DESTDIR}${prefix}/sbin/mosquitto $(INSTALL) mosquitto_plugin.h ${DESTDIR}${prefix}/include/mosquitto_plugin.h ifeq ($(WITH_TLS),yes) - $(INSTALL) -s mosquitto_passwd ${DESTDIR}${prefix}/bin/mosquitto_passwd + $(INSTALL) -s --strip-program=$(STRIP) mosquitto_passwd ${DESTDIR}${prefix}/bin/mosquitto_passwd endif uninstall :