]> Git Repo - buildroot-mgba.git/commitdiff
package/dump1090: fix dependencies
authorFabrice Fontaine <[email protected]>
Sun, 7 Aug 2022 09:55:53 +0000 (11:55 +0200)
committerThomas Petazzoni <[email protected]>
Sun, 7 Aug 2022 12:38:08 +0000 (14:38 +0200)
dump1090 needs threads and gcc >= 4.9 since bump to version 7.2 in
commit e80c99e1519dafc2cf88ab4672eecda88359ecb1 to avoid the following
build failures:

In file included from dump1090.c:50:
dump1090.h:69:10: fatal error: pthread.h: No such file or directory
   69 | #include <pthread.h>
      |          ^~~~~~~~~~~

In file included from dump1090.c:50:0:
dump1090.h:68:23: fatal error: stdatomic.h: No such file or directory
 #include <stdatomic.h>
                       ^

Fixes:
 - http://autobuild.buildroot.org/results/a8993d9a09c79231358f50d2c1eb2e08cf7d5fd6
 - http://autobuild.buildroot.org/results/7367abae7dc8187e4a2aae5397618c6e1b7aa521

Signed-off-by: Fabrice Fontaine <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
package/dump1090/Config.in

index 897ad4667948870c52d9df928d323301238bd42b..ca3165dc74eb5d04b477acb5c560c0e652cbbf1a 100644 (file)
@@ -1,7 +1,13 @@
 config BR2_PACKAGE_DUMP1090
        bool "dump1090"
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
        select BR2_PACKAGE_NCURSES
        help
          Dump1090 is a simple Mode S decoder for RTLSDR devices
 
          https://github.com/flightaware/dump1090
+
+comment "dump1090 needs a toolchain w/ threads, gcc >= 4.9"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS || \
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
This page took 0.042538 seconds and 4 git commands to generate.