Skip to contentSkip to conversation

cjson: fix error with sh4a and powerpc

PATCH New Fabrice Fontaine 2 participants 2 messages Dec 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cjson: fix error with sh4a and powerpc

Fixes:
- http://autobuild.buildroot.net/results/3d899790acdc5c21733ff6f7f5a1b500e862ea0a

---
 package/cjson/cjson.hash | 1 +
 package/cjson/cjson.mk   | 6 ++++++
 2 files changed, 7 insertions(+)
package/cjson/cjson.hash +1 -0
index 4f0723a..fc0ed28 100644
@@ -1,2 +1,3 @@
 # Locally computed:
 sha256	3487795d54440bdbd41b4b8e7688889526f2f9a652639f6036b9965016c800e7	cjson-v1.1.0.tar.gz
+sha256	8eea780ee5729275a5076002d92a4c7854ecb89968b26a81efeb5bd9828268a0	fcc89c4bb264d665929b00eeebc479a643a90896.patch
package/cjson/cjson.mk +6 -0
index 3dd6ebc..7ac7a71 100644
@@ -10,4 +10,10 @@ CJSON_INSTALL_STAGING = YES
 CJSON_LICENSE = MIT
 CJSON_LICENSE_FILES = LICENSE
 
+# This patch fixes -Werror=strict-overflow compile errors on sh4a and powerpc
+# toolchains:
+# http://autobuild.buildroot.net/results/3d899790acdc5c21733ff6f7f5a1b500e862ea0a
+CJSON_PATCH = \
+	https://github.com/DaveGamble/cjson/commit/fcc89c4bb264d665929b00eeebc479a643a90896.patch
+
 $(eval $(cmake-package))
Signature · 1 line
2.5.0