]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
jq: compile as _GNU_SOURCE to fix segfault when compiled with gcc 6
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Mon, 19 Feb 2018 15:57:34 +0000 (16:57 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 10 Apr 2018 19:46:50 +0000 (21:46 +0200)
commit22905de36242920622d271f03b56f614fea15832
treec61a450a2ffae747bea4ed0cc5242c348bf0c834
parentac860db76283fb62a430be9cf47eb697528e57fd
jq: compile as _GNU_SOURCE to fix segfault when compiled with gcc 6

When compiling host-jq with gcc 6+, running it gives an immediate segfault.
Reported upstream: https://github.com/stedolan/jq/issues/1598

The issue can be solved by compiling with _GNU_SOURCE as extra preprocessor
define. Once the issue is solved upstream, this change can be reverted.

As the issue will normally be the same for target, apply the same fix there.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 21114013e83a67fd6b84e1d911ee503be3f0e35d)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/jq/jq.mk