package/jsoncpp: add patch to fix musl build issue on x86
authorJörg Krause <joerg.krause@embedded.rocks>
Fri, 30 Oct 2015 07:06:07 +0000 (08:06 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 31 Oct 2015 17:56:08 +0000 (18:56 +0100)
commit6b462ac8bd4021dda4f84198a127f1be7b46087d
tree00f92074fcdf75e35cd209ebd04d4413119f6bf3
parent922b67d89c49f7c7778a7c95e7ef398c408fb507
package/jsoncpp: add patch to fix musl build issue on x86

This patch is replaces two previous sumbissions, the first by Bernd Kuhls [1],
the second by me [2].

The posix_memalign declaration is incompatible with musl for C++ on x86, because
of the exception specification [2]. Note, the referenced patch is part of a
patch series to "Add musl support to GCC".

However, this build issue only happens if compilation is done with the GCC
compiler option '-pedantic' [3] which is done so in jsoncpp.

Fortunately, upstream accepted a patch to opt-out '-pedantic' [4]. We backport
this patch to fix autobuild errors.

Fixes:
http://autobuild.buildroot.net/results/588/5885d33b8d9f17878f565f3ae5371017dc89aede/
http://autobuild.buildroot.net/results/0d9/0d90c7c13ae1640b07709c4c686e0237ada1324d/
http://autobuild.buildroot.net/results/30b/30b98ac7362c27254218a6e521d29971070f8c3c/
http://autobuild.buildroot.net/results/292/29289c125166630aeaf884ccc006bcf12c8aa0f6/

and many more.

[1] https://patchwork.ozlabs.org/patch/505425/
[2] https://patchwork.ozlabs.org/patch/533169/
[3] https://gcc.gnu.org/ml/gcc-patches/2015-05/msg01425.html
[4] https://github.com/open-source-parsers/jsoncpp/commit/48bfe910622d79507983fc36254ca9f3ca63acb6

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/jsoncpp/0002-Add-option-JSONCPP_WITH_STRICT_ISO.patch [new file with mode: 0644]
package/jsoncpp/jsoncpp.mk