From b3e439a903e70436823fa4daf5060b7d0cd99778 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sun, 17 May 2020 12:52:29 +0200 Subject: [PATCH] rtpengine: prevent picking up host libsystemd Signed-off-by: Sebastian Kemper --- .../patches/04-prevent-systemd-detection.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 net/rtpengine/patches/04-prevent-systemd-detection.patch diff --git a/net/rtpengine/patches/04-prevent-systemd-detection.patch b/net/rtpengine/patches/04-prevent-systemd-detection.patch new file mode 100644 index 0000000..33c1727 --- /dev/null +++ b/net/rtpengine/patches/04-prevent-systemd-detection.patch @@ -0,0 +1,17 @@ +--- a/lib/lib.Makefile ++++ b/lib/lib.Makefile +@@ -35,10 +35,10 @@ ifeq ($(RTPENGINE_VERSION),) + endif + CFLAGS+= -DRTPENGINE_VERSION="\"$(RTPENGINE_VERSION)\"" + +-# look for libsystemd +-ifeq ($(shell pkg-config --exists libsystemd && echo yes),yes) +-have_libsystemd := yes +-endif ++# No libsystemd in OpenWrt, but pkg-config could find build host's. ++#ifeq ($(shell pkg-config --exists libsystemd && echo yes),yes) ++have_libsystemd := no ++#endif + ifeq ($(have_libsystemd),yes) + CFLAGS+= $(shell pkg-config --cflags libsystemd) + CFLAGS+= -DHAVE_LIBSYSTEMD