]> git.sesse.net Git - stockfish/commit
Fixes for ARM compilation
authorJacques <jacques.bachellerie@mfglabs.com>
Sat, 8 Oct 2016 10:15:43 +0000 (12:15 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 13 Oct 2016 06:34:04 +0000 (08:34 +0200)
commita3fe80c36ac8ee7677d1f6b7df9b2497e3f755c5
tree5b0814dfd10ee65cb45679f25c14f7051b69a0b4
parentfdf3a51c68cb778af445bf6dafbfecf375fc2ee8
Fixes for ARM compilation

The target:

Odroid U3 (http://www.hardkernel.com/main/products/prdt_info.php?g_code=g138745696275)
Debian Jessie
As listed in #550 and #638 three modifications are needed for compilation to work:

float-abi flag for GCC If an FPU is present and supported by the installed os then passed value need to be hard.
I didn't find any better solution than using readelf to check for the availibilty of Tag_ABI_VFP_args which sould indicate support for the FPU. The check is only done if the arch is arm and if readelf is not present
on the system, there will be an error (/bin/sh: 1: readelf: not found) but it will not break and will continue with the default softfp value. Outputing the error is not really acceptable but I wanted some feedback on the
check itself.

-lpthread is needed on armv7 outside of Android
I replaced UNAME with KERNEL and OS to allow to differentiate Android.

m32 flag
My understanding is that outside of Android the flag is generating errors on armv7.

These modifications should introduce change only for non Android armv7 build.

No functional change.
src/Makefile