summaryrefslogtreecommitdiff
blob: 8f5e4b4e02d026bbd79b99baa72f2fb19e9ca6de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)