[Buildroot] [PATCH master 1/1] jq: compile as _GNU_SOURCE to fix segfault after compilation with gcc 6

Peter Korsgaard peter at korsgaard.com
Mon Feb 19 18:02:39 UTC 2018


>>>>> "Thomas" == Thomas De Schampheleire <thomas.de_schampheleire at nokia.com> writes:

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

Ahh, so the issue is a missing prototype for strdup(), so the compiler
defaults to int for the return type.

 > 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 at nokia.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list