You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mosquitto/debian/patches/914525.patch

19 lines
566 B
Diff

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
@@ -244,8 +244,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 $(shell pkg-config --cflags libsystemd)
+ BROKER_LIBS:=$(BROKER_LIBS) $(shell pkg-config --libs libsystemd)
+ endif
endif
ifeq ($(WITH_SRV),yes)