[systemd-devel] [PATCH] build: put missing KMOD_CFLAGS into Makefile

Jan Engelhardt jengelh at inai.de
Tue May 20 14:31:59 PDT 2014


The build fails if kmod is not in a default location.
---
 Makefile.am | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index f2a3bbd..f3108db 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4200,6 +4200,10 @@ systemd_resolved_SOURCES = \
 	src/resolve/resolved.c \
 	src/resolve/resolved-manager.c
 
+systemd_resolved_CFLAGS = \
+	$(AM_CFLAGS) \
+	$(KMOD_CFLAGS)
+
 nodist_systemd_resolved_SOURCES = \
 	src/resolve/resolved-gperf.c
 
@@ -4301,6 +4305,10 @@ systemd_networkd_wait_online_LDADD = \
 test_network_SOURCES = \
 	src/network/test-network.c
 
+test_network_CFLAGS = \
+	$(AM_CFLAGS) \
+	$(KMOD_CFLAGS)
+
 test_network_LDADD = \
 	libsystemd-networkd-core.la
 	$(KMOD_LIBS)
-- 
1.8.4.5



More information about the systemd-devel mailing list