package/quickjs: depends on gcc 4.9 at least
authorFrancois Perrad <fperrad@gmail.com>
Sun, 6 Dec 2020 06:39:26 +0000 (07:39 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 29 Dec 2020 22:03:07 +0000 (23:03 +0100)
fix build http://autobuild.buildroot.org/results/d45/d456eefffd138a714e367f9520adb662f5e0f57e/
missing include <stdatomic.h>

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/quickjs/Config.in

index ee53744bde72c33d4a4b81bda2491244033faf1c..886cbd4db6ca7aad3c3616df4c8d6b1b5385e8aa 100644 (file)
@@ -3,6 +3,7 @@ config BR2_PACKAGE_QUICKJS
        depends on !BR2_STATIC_LIBS
        # No way to check for fenv support.
        depends on !BR2_TOOLCHAIN_USES_UCLIBC
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
        depends on BR2_USE_MMU # fork()
        help
          QuickJS is a small and embeddable Javascript engine.
@@ -11,6 +12,6 @@ config BR2_PACKAGE_QUICKJS
 
          https://bellard.org/quickjs/
 
-comment "quickjs needs a glibc or musl toolchain w/ dynamic library"
+comment "quickjs needs a glibc or musl toolchain w/ gcc >= 4.9, dynamic library"
        depends on BR2_USE_MMU
-       depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_UCLIBC
+       depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_UCLIBC || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9