rtpengine: prevent picking up host libsystemd
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
fffc4678c8
commit
b3e439a903
1 changed files with 17 additions and 0 deletions
17
net/rtpengine/patches/04-prevent-systemd-detection.patch
Normal file
17
net/rtpengine/patches/04-prevent-systemd-detection.patch
Normal file
|
@ -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
|
Loading…
Reference in a new issue