[systemd-devel] [PATCH] Fix build without blkid

Chengwei Yang chengwei.yang at intel.com
Sun Aug 25 22:06:14 PDT 2013


build systemd-gpt-auto-generator only if have blkid, otherwise, it will
fail.
---
 Makefile.am |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index fd38e82..5654ad3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1708,6 +1708,7 @@ bin_PROGRAMS += \
 	bootctl
 endif
 
+if HAVE_BLKID
 # ------------------------------------------------------------------------------
 systemgenerator_PROGRAMS +=  \
 	systemd-gpt-auto-generator
@@ -1725,6 +1726,7 @@ systemd_gpt_auto_generator_LDADD = \
 systemd_gpt_auto_generator_CFLAGS = \
 	$(AM_CFLAGS) \
 	$(BLKID_CFLAGS)
+endif
 
 # ------------------------------------------------------------------------------
 systemd_rc_local_generator_SOURCES = \
-- 
1.7.9.5



More information about the systemd-devel mailing list