From b2c5e974179bbdee4848e6bfdcd8c3911287585c Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 22 Oct 2015 19:01:19 +0200 Subject: [PATCH] Disable bootmisc plugin entirely if configure --enable-static Signed-off-by: Joachim Nilsson --- plugins/bootmisc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/bootmisc.c b/plugins/bootmisc.c index b79e7d68..4802304a 100644 --- a/plugins/bootmisc.c +++ b/plugins/bootmisc.c @@ -29,9 +29,8 @@ #include "../plugin.h" #include "libite/lite.h" -#ifdef ENABLE_STATIC -#error This plugin uses getuser(), which relies on dynamically linked GLIBC. Cannot be built statically! -#endif +/* This plugin uses getuser(), which relies on dynamically linked GLIBC. Cannot be built statically! */ +#ifndef ENABLE_STATIC /* * Setup standard FHS 2.3 structure in /var, and @@ -105,6 +104,8 @@ PLUGIN_EXIT(plugin_exit) plugin_unregister(&plugin); } +#endif/* ENABLE_STATIC */ + /** * Local Variables: * version-control: t