package/wampcc: fix build failure on RISC-V/musl
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 7 Aug 2019 14:22:18 +0000 (16:22 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 11 Aug 2019 12:58:01 +0000 (14:58 +0200)
commit5894495037c05823acfce373828a0080ad68247d
treeb5e8ffc58e99d9f26375df442802a1759731427a
parentb7511fa25650d58b5359e9f30d738ef48212aac6
package/wampcc: fix build failure on RISC-V/musl

wampcc includes some code from msgpack-c, which itself includes some
code from Boost for the endianness detection. This code did not
properly handle the case of the RISC-V architecture supported by
non-glibc toolchains, causing the endianness to be unknown (and a
build failure) when building wampcc for RISC-V with the musl C
library.

This commit fixes that, by bringing a change that was upstreamed to
Boost as of commit
https://github.com/boostorg/predef/commit/4bc7cc02eda854e4c8ac73caecfee37717083a6b.

Fixes:

  http://autobuild.buildroot.net/results/01df5a6f38fb32563831d171d03dfb9ad89f5830/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/wampcc/0001-Add-RISC-V-endian-detection.patch [new file with mode: 0644]