浏览代码

libsepol: require threads

libsepol 2.7 now uses <pthread.h>

Fixes:

  http://autobuild.buildroot.net/results/5f1c6872a395d8c6d55e2b1722730871b4daf6a3

Signed-off-by: Adam Duskett <aduskett@gmail.com>
Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Adam Duskett 7 年之前
父节点
当前提交
3947b14c68
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      package/libsepol/Config.in
  2. 4 0
      package/semodule-utils/Config.in

+ 4 - 0
package/libsepol/Config.in

@@ -1,7 +1,11 @@
 config BR2_PACKAGE_LIBSEPOL
 config BR2_PACKAGE_LIBSEPOL
 	bool "libsepol"
 	bool "libsepol"
+	depends on BR2_TOOLCHAIN_HAS_THREADS # pthread
 	help
 	help
 	  Libsepol is the binary policy manipulation library. It doesn't
 	  Libsepol is the binary policy manipulation library. It doesn't
 	  depend upon or use any of the other SELinux components.
 	  depend upon or use any of the other SELinux components.
 
 
 	  http://selinuxproject.org/page/Main_Page
 	  http://selinuxproject.org/page/Main_Page
+
+comment "libsepol needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS

+ 4 - 0
package/semodule-utils/Config.in

@@ -1,5 +1,6 @@
 config BR2_PACKAGE_SEMODULE_UTILS
 config BR2_PACKAGE_SEMODULE_UTILS
 	bool "semodule-utils"
 	bool "semodule-utils"
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libsepol
 	select BR2_PACKAGE_LIBSEPOL
 	select BR2_PACKAGE_LIBSEPOL
 	help
 	help
 	  semodule-utils is a package that contains tools for handling
 	  semodule-utils is a package that contains tools for handling
@@ -13,3 +14,6 @@ config BR2_PACKAGE_SEMODULE_UTILS
 	  * semodule_package - Create a SELinux policy module package.
 	  * semodule_package - Create a SELinux policy module package.
 
 
 	  https://github.com/SELinuxProject/selinux/wiki/Releases
 	  https://github.com/SELinuxProject/selinux/wiki/Releases
+
+comment "semodule-utils needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS