jq: fix MIPS compile flags
authorMarko Ratkaj <marko.ratkaj@sartura.hr>
Wed, 17 May 2017 12:19:38 +0000 (14:19 +0200)
committerMarko Ratkaj <marko.ratkaj@sartura.hr>
Wed, 17 May 2017 13:01:51 +0000 (15:01 +0200)
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>
utils/jq/Makefile

index 6bb2f8f1fadfc93e3b26f609b682e6851373afa3..18736110ef2b62f9ae04c8fe2b2bc6467423fc32 100644 (file)
@@ -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