![Adam Duskett](/assets/img/avatar_default.png)
If GCC on the host is older than 4.9, during the configure stage an error is thrown such as: checking whether the host C compiler can be used... no ERROR: Only GCC 4.9 or newer is supported (found version 4.8.2). Depend on the host gcc version being >= 4.9 Fixes: http://autobuild.buildroot.net/results/192661452fd522bf46b23d5a7a522eb853a984bf Signed-off-by: Adam Duskett <aduskett@greenlots.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
50 lines
1.8 KiB
Plaintext
50 lines
1.8 KiB
Plaintext
config BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS
|
|
bool
|
|
default y if BR2_aarch64
|
|
default y if BR2_arm || BR2_armeb
|
|
default y if BR2_i386 || BR2_x86_64
|
|
default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
|
|
default y if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
|
|
default y if BR2_riscv
|
|
default y if BR2_sh4 || BR2_sh4a
|
|
default y if BR2_sparc || BR2_sparc64
|
|
depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnspr
|
|
|
|
config BR2_PACKAGE_SPIDERMONKEY_JIT_ARCH_SUPPORTS
|
|
bool
|
|
default y if BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || BR2_x86_64
|
|
|
|
config BR2_PACKAGE_SPIDERMONKEY
|
|
bool "spidermonkey"
|
|
depends on BR2_HOST_GCC_AT_LEAST_4_9
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # needs pthread_getattr_np()
|
|
depends on BR2_USE_MMU # fork in executable tools.
|
|
depends on BR2_USE_WCHAR
|
|
depends on !BR2_TOOLCHAIN_USES_UCLIBC # No way to check for fenv support.
|
|
depends on !BR2_STATIC_LIBS # dlopen
|
|
select BR2_PACKAGE_HOST_PYTHON
|
|
select BR2_PACKAGE_HOST_PYTHON_SSL
|
|
select BR2_PACKAGE_LIBNSPR
|
|
select BR2_PACKAGE_ZLIB
|
|
help
|
|
SpiderMonkey is the code-name for Mozilla Firefox's C++
|
|
implementation of JavaScript. It is intended to be embedded in
|
|
other applications that provide host environments for
|
|
JavaScript.
|
|
|
|
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
|
|
|
|
comment "spidermonkey needs a glibc or musl toolchain with C++, wchar, dynamic library, NPTL, gcc >= 4.9"
|
|
depends on BR2_USE_MMU
|
|
depends on BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS
|
|
depends on BR2_TOOLCHAIN_USES_UCLIBC || \
|
|
!BR2_INSTALL_LIBSTDCPP || \
|
|
BR2_STATIC_LIBS || \
|
|
!BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
|
!BR2_HOST_GCC_AT_LEAST_4_9 || \
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
|
!BR2_USE_WCHAR
|