packages/utils/jq/Makefile
Marko Ratkaj 50716550be 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>
2017-05-17 15:01:51 +02:00

44 lines
996 B
Makefile

#
# Copyright (C) 2017 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=jq
PKG_VERSION:=1.5
PKG_RELEASE:=1
PKG_LICENSE:=BSD
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/stedolan/jq/releases/download/jq-$(PKG_VERSION)/
PKG_MD5SUM:=0933532b086bd8b6a41c1b162b1731f9
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
TITLE:=Lightweight and flexible command-line JSON processor.
URL:=https://stedolan.github.io/jq/
MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
endef
define Package/jq/description
Lightweight and flexible command-line JSON processor.
endef
define Package/jq/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
endef
$(eval $(call BuildPackage,jq))