Xymon Mailing List Archive search

cross compilation and endianness detection

list Damien Martins
Tue, 3 Jul 2018 16:20:31 +0200
Message-Id: <user-139e8fa54584@xymon.invalid>

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