blob: 8f5e4b4e02d026bbd79b99baa72f2fb19e9ca6de [file] [log] [blame]
Control libbsd dependency via SETPROCTITLE definition.
--- criu-1.5/Makefile.config
+++ criu-1.5/Makefile.config
@@ -3,10 +3,12 @@
CONFIG := include/config.h
+ifeq ($(SETPROCTITLE),yes)
ifeq ($(call try-cc,$(LIBBSD_DEV_TEST),-lbsd),y)
LIBS += -lbsd
DEFINES += -DCONFIG_HAS_LIBBSD
endif
+endif
$(CONFIG): scripts/utilities.mak scripts/feature-tests.mak include/config-base.h
$(E) " GEN " $@
@@ -33,9 +35,11 @@
ifeq ($(VDSO),y)
$(Q) @echo '#define CONFIG_VDSO' >> $@
endif
+ifeq ($(SETPROCTITLE),yes)
ifeq ($(call try-cc,$(SETPROCTITLE_INIT_TEST),-lbsd),y)
$(Q) @echo '#define CONFIG_HAS_SETPROCTITLE_INIT' >> $@
endif
+endif
$(Q) @echo '#endif /* __CR_CONFIG_H__ */' >> $@
config: $(CONFIG)