pull/1600/head
Roger A. Light 7 years ago
parent dd7da0203b
commit 73228b160e

8
debian/changelog vendored

@ -1,3 +1,11 @@
mosquitto (1.5.4-2) unstable; urgency=medium
* debian/patches/914525.patch : Use pkg-config to get systemd libs
(Closes: #914525)
- This is needed to allow compilation on non-Linux systems.
-- Roger A. Light <roger@atchoo.org> Sun, 25 Nov 2018 13:52:16 +0000
mosquitto (1.5.4-1) unstable; urgency=medium
* New upstream release (Closes: #911104).

@ -0,0 +1,18 @@
Description: Use pkg-config to get systemd libs to allow build on non-linux systems
Author: Roger Light <roger@atchoo.org>
Forwarded: yes
--- a/config.mk
+++ b/config.mk
@@ -235,8 +235,10 @@
endif
ifeq ($(WITH_SYSTEMD),yes)
- BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_SYSTEMD
- BROKER_LIBS:=$(BROKER_LIBS) -lsystemd
+ ifneq ($(shell pkg-config --libs libsystemd),)
+ BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_SYSTEMD $(pkg-config --cflags libsystemd)
+ BROKER_LIBS:=$(BROKER_LIBS) $(pkg-config --libs libsystemd)
+ endif
endif
ifeq ($(WITH_SRV),yes)

@ -1 +1,2 @@
914525.patch
debian-config.patch

Loading…
Cancel
Save