aboutsummaryrefslogtreecommitdiff
path: root/utils/jq/Makefile
diff options
context:
space:
mode:
authorMarko Ratkaj <marko.ratkaj@sartura.hr>2017-05-17 14:19:38 +0200
committerMarko Ratkaj <marko.ratkaj@sartura.hr>2017-05-17 15:01:51 +0200
commit50716550bec7bfde1fa46da4b18761aed7d9f093 (patch)
tree8a5f51d81c8948f24f1bac14ff169a2fabf57dc2 /utils/jq/Makefile
parent1bf7af4ca53db6f58655857f6eb49a9893c854d9 (diff)
jq: fix MIPS compile flags
There is a gcc related bug that causes the following issue on MIPS: Assertion failed: jv_get_kind(a) == JV_KIND_STRING (jv.c: jvp_string_ptr: 435) This patch will disable SRA optimizations on MIPS platform and prevent the above issue. Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
Diffstat (limited to 'utils/jq/Makefile')
-rw-r--r--utils/jq/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/jq/Makefile b/utils/jq/Makefile
index 6bb2f8f1f..18736110e 100644
--- a/utils/jq/Makefile
+++ b/utils/jq/Makefile
@@ -20,6 +20,10 @@ PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
+ifdef CONFIG_USE_MIPS16
+ TARGET_CFLAGS += -fno-ipa-sra
+endif
+
define Package/jq
SECTION:=utils
CATEGORY:=Utilities