From 50716550bec7bfde1fa46da4b18761aed7d9f093 Mon Sep 17 00:00:00 2001 From: Marko Ratkaj Date: Wed, 17 May 2017 14:19:38 +0200 Subject: [PATCH] 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 --- utils/jq/Makefile | 4 ++++ 1 file changed, 4 insertions(+) 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