[Xymon] cross compilation and endianness detection

Damien Martins damien at makelofine.org
Tue Jul 3 16:20:31 CEST 2018


Hi  Christian,

In fact, test-endianness is compiled using OpenWRT toolchain for cross 
compilation, so it can not be executed on my local computer (the 
compiler host, not the target). I compiled the test-endianness.c file, 
and uploaded the resulting binary to my target OS. I executed it 
successfully and retrieved the value, then inserted in in lib/Makefile 
file. For cross compilation purpose, should be good to be able to pass 
the endianness information during the "configure" execution.


Le 03/07/2018 à 16:09, Christian Herzog a écrit :
> Hi Damien,
>
> I just checked and test-endianness is compiled from test-endianness.c - for
> some reason the one you have doesn't seem to work for you. Can you just do
>
> gcc -o test-endianness test-endianness.c
>
> and see if that works better?
>
> best,
> -Christian
>

-- 
Cordialement,
Damien Martins



More information about the Xymon mailing list