[Buildroot] [PATCH v2 4/7] package/checkpolicy: libselinux depend >=gcc4.7

Matt Weber matthew.weber at rockwellcollins.com
Mon Aug 13 15:17:32 UTC 2018


Depend on at least gcc 4.7 when using libselinux as the
package is using ATOMICS.

Signed-off-by: Matthew Weber <matthew.weber at rockwellcollins.com>
---
 package/checkpolicy/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/checkpolicy/Config.in b/package/checkpolicy/Config.in
index 97ad0b7704..1a3d1215f0 100644
--- a/package/checkpolicy/Config.in
+++ b/package/checkpolicy/Config.in
@@ -4,6 +4,8 @@ config BR2_PACKAGE_CHECKPOLICY
 	depends on !BR2_STATIC_LIBS # libselinux
 	depends on BR2_TOOLCHAIN_USES_GLIBC # libselinux
 	depends on !BR2_arc # libselinux
+	depends on BR2_HOST_GCC_AT_LEAST_4_7 # libselinux use of __ATOMIC_*
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # libselinux use of __ATOMIC_*
 	select BR2_PACKAGE_LIBSELINUX
 	select BR2_PACKAGE_FLEX
 	help
-- 
2.17.0




More information about the buildroot mailing list