summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/jemalloc/Config.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/jemalloc/Config.in b/package/jemalloc/Config.in
index ff7438775e..a9999baf13 100644
--- a/package/jemalloc/Config.in
+++ b/package/jemalloc/Config.in
@@ -1,5 +1,16 @@
+config BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
+ bool
+ default y if BR2_arm || BR2_armeb
+ default y if BR2_aarch64 || BR2_aarch64_be
+ default y if BR2_i386 || BR2_x86_64
+ default y if BR2_mips || BR2_mipsel
+ default y if BR2_sparc64
+ default y if BR2_powerpc
+ default y if BR2_sh4 || BR2sh4eb || BR2_sh4a || BR2_sh4aeb
+
config BR2_PACKAGE_JEMALLOC
bool "jemalloc"
+ depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
depends on !BR2_STATIC_LIBS
help
This library providing a malloc(3) implementation that emphasizes
@@ -8,4 +19,5 @@ config BR2_PACKAGE_JEMALLOC
http://www.canonware.com/jemalloc/
comment "jemalloc needs a toolchain w/ dynamic library"
+ depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
depends on BR2_STATIC_LIBS
OpenPOWER on IntegriCloud