[Buildroot] [PATCH] package/yajl: fix build when explicit link with libm is needed
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Apr 24 21:27:30 UTC 2016
Hello,
On Sun, 24 Apr 2016 20:29:38 +0200, Samuel Martin wrote:
> This change adds another fix to the yajl build-system code.
> This patch checks for isnan function in libc, and if not, it makes sure
> libm is passed to the linker flags.
>
> This change fixes build failure looking like:
>
> make[3]: Entering directory `/home/peko/autobuild/instance-2/output/build/yajl-2.1.0'
> [ 81%] Building C object example/CMakeFiles/parse_config.dir/parse_config.c.o
> ../yajl-2.1.0/lib/libyajl.so.2.1.0: undefined reference to `__isnan'
> ../yajl-2.1.0/lib/libyajl.so.2.1.0: undefined reference to `__isinf'
> collect2: error: ld returned 1 exit status
> make[3]: *** [verify/json_verify] Error 1
>
> Fixes:
> http://autobuild.buildroot.org/results/312/31268e4d20aa34bb90c09aa771b1923f979578ab/
> and many others
>
> Cc: Benoît Mauduit <bmauduit at beneth.fr>
> Cc: Bernd Kuhls <bernd.kuhls at t-online.de>
> Cc: Jörg Krause <joerg.krause at embedded.rocks>
> Cc: Vicente Olivert Riera <Vincent.Riera at imgtec.com>
> Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
> ---
> ...l-_s-with-libm-when-isnan-is-not-brought-.patch | 64 ++++++++++++++++++++++
> 1 file changed, 64 insertions(+)
> create mode 100644 package/yajl/0004-Link-libyajl-_s-with-libm-when-isnan-is-not-brought-.patch
Applied to master, thanks. Please submit upstream! Generally speaking,
if some effort could be made to submit our 4 yajl patches upstream, it
would be good.
Thanks a lot!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list