[CRIU] [PATCH] build: Show a note when building wihout libbsd

Radostin Stoyanov rstoyanov1 at gmail.com
Fri Jan 4 21:30:29 MSK 2019


Show a note that when libbsd is not installed CRIU is compiled without
setproctitle() and strlcpy() support.

Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
---
 Makefile.config | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Makefile.config b/Makefile.config
index 0e557805c..d89ccbb1a 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -5,6 +5,9 @@ include scripts/feature-tests.mak
 ifeq ($(call try-cc,$(FEATURE_TEST_LIBBSD_DEV),-lbsd),true)
         LIBS_FEATURES	+= -lbsd
         FEATURE_DEFINES	+= -DCONFIG_HAS_LIBBSD
+else
+        $(info Note: Building without setproctitle() and strlcpy() support.)
+        $(info $(info)      To enable these features, please install libbsd-devel (RPM) / libbsd-dev (DEB).)
 endif

 ifeq ($(call pkg-config-check,libselinux),y)
--
2.20.1



More information about the CRIU mailing list