package/apcupsd: always depend on threads
authorJames Hilliard <james.hilliard1@gmail.com>
Wed, 22 Apr 2020 06:49:42 +0000 (00:49 -0600)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 23 Apr 2020 20:54:25 +0000 (22:54 +0200)
Fixes:
http://autobuild.buildroot.net/results/aa2ad7bdb37da611a4ec863ed2e986f34ea5228b/build-end.log

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/apcupsd/Config.in

index 2849736a1a2ae8d048e3a15858e55ed29ae23e01..4bc523eed49753c42ecc1d1e3f7e24613b894cfc 100644 (file)
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_APCUPSD
        bool "apcupsd"
        depends on BR2_INSTALL_LIBSTDCPP
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_USE_MMU # fork()
        help
          A daemon for controlling APC UPSes.
@@ -64,6 +65,6 @@ comment "usb support needs a toolchain w/ threads"
 
 endif
 
-comment "apcupsd needs a toolchain w/ C++"
+comment "apcupsd needs a toolchain w/ C++, threads"
        depends on BR2_USE_MMU
-       depends on !BR2_INSTALL_LIBSTDCPP
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS