diff options
author | Cyrill Gorcunov <gorcunov@openvz.org> | 2014-03-25 01:30:11 +0400 |
---|---|---|
committer | Pavel Emelyanov <xemul@parallels.com> | 2014-03-26 01:44:23 +0400 |
commit | 0bae3bc1813cc9acbde560729897948cd00883b0 (patch) | |
tree | 7a07acc9cd6b3163e53ebf50b8c4747234ab8275 /Makefile.config | |
parent | 5f00a9ca40c3e4e023965c30a129a59fcb8ffcf7 (diff) |
make: config -- Add testing if we have libbsd installed
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Diffstat (limited to 'Makefile.config')
-rw-r--r-- | Makefile.config | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.config b/Makefile.config index 9d150a90f..ca46ca14f 100644 --- a/Makefile.config +++ b/Makefile.config @@ -3,6 +3,11 @@ include scripts/feature-tests.mak CONFIG := include/config.h +ifeq ($(call try-cc,$(LIBBSD_DEV_TEST),-lbsd),y) + LIBS += -lbsd + DEFINES += -DCONFIG_HAS_LIBBSD +endif + $(CONFIG): scripts/utilities.mak scripts/feature-tests.mak include/config-base.h $(E) " GEN " $@ $(Q) @echo '#ifndef __CR_CONFIG_H__' > $@ @@ -16,10 +21,10 @@ endif ifeq ($(call try-cc,$(PRLIMIT_TEST),),y) $(Q) @echo '#define CONFIG_HAS_PRLIMIT' >> $@ endif -ifeq ($(call try-cc,$(STRLCPY_TEST),),y) +ifeq ($(call try-cc,$(STRLCPY_TEST),$(LIBS)),y) $(Q) @echo '#define CONFIG_HAS_STRLCPY' >> $@ endif -ifeq ($(call try-cc,$(STRLCAT_TEST),),y) +ifeq ($(call try-cc,$(STRLCAT_TEST),$(LIBS)),y) $(Q) @echo '#define CONFIG_HAS_STRLCAT' >> $@ endif ifeq ($(call try-cc,$(PTRACE_PEEKSIGINFO_TEST),),y) |