Patrick Williams | e69d235 | 2017-02-23 20:56:04 -0600 | [diff] [blame] | 1 | Upstream-Status: Inappropriate [disable feature] |
| 2 | |
| 3 | It shows warning when build crius if libselinux has been built already: |
| 4 | |
| 5 | WARNING: QA Issue: criu rdepends on libselinux, but it isn't a build dependency? [build-deps] |
| 6 | |
| 7 | Apply this patch to disable selinux support when 'selinux' is not in PACKAGECONF. |
| 8 | |
| 9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 10 | |
| 11 | diff --git a/Makefile.config b/Makefile.config |
| 12 | index ce4b8d8..3ac2780 100644 |
| 13 | --- a/Makefile.config |
| 14 | +++ b/Makefile.config |
| 15 | @@ -8,11 +8,6 @@ ifeq ($(call try-cc,$(LIBBSD_DEV_TEST),-lbsd),y) |
| 16 | DEFINES += -DCONFIG_HAS_LIBBSD |
| 17 | endif |
| 18 | |
| 19 | -ifeq ($(call pkg-config-check,libselinux),y) |
| 20 | - LIBS := -lselinux $(LIBS) |
| 21 | - DEFINES += -DCONFIG_HAS_SELINUX |
| 22 | -endif |
| 23 | - |
| 24 | $(CONFIG): scripts/utilities.mak scripts/feature-tests.mak include/config-base.h |
| 25 | $(E) " GEN " $@ |
| 26 | $(Q) @echo '#ifndef __CR_CONFIG_H__' > $@ |