jamvm: fix build with uClibc on i386/x86_64
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 6 Nov 2016 21:19:38 +0000 (22:19 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 6 Nov 2016 21:21:07 +0000 (22:21 +0100)
commita1ca3dcb590852880770fe879ea59b6d8222b010
tree200cb3318981568713fe850f647b68b0c76bf03e
parentd02655cd2157636d6150daf3a1344b25141780c1
jamvm: fix build with uClibc on i386/x86_64

Commit 0b6b67f34d6d4aeb340bbca579dbf85363c3f4ea ("jamvm: add patch to
fix musl build") introduced a patch to fix the jamvm build with the
musl C library. While the commit log pretends that the build was still
working with uClibc, it is not correct: it no longer builds fine with
uClibc on i386/x86_64, because the Buildroot default configuration for
uClibc doesn't enable <fenv.h> support.

Therefore this commit adapts the patch to use <fenv.h> if available
(which is the case with musl), and otherwise fall back to
<fpu_control.h>, which is available in uClibc.

Thanks to Waldemar for the investigation.

Fixes:

  http://autobuild.buildroot.net/results/325a50d15e1836b31df4e84ba83b296abfb73041/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/jamvm/0001-Use-fenv.h-instead-of-fpu_control.h.patch [deleted file]
package/jamvm/0001-Use-fenv.h-when-available-instead-of-fpu_control.h.patch [new file with mode: 0644]
package/jamvm/jamvm.mk