wiire-a/pixiewps

1.4.2 build fails with i486 (32bit) crosscompiler

rofl0r opened this issue · 3 comments

the following fixes it

sed -i s/asm/__asm__/g src/crypto/tfm/fp_montgomery_reduce.c                    
sed -i s/asm/__asm__/g src/crypto/tfm/fp_mul_comba.c                            
sed -i s/asm/__asm__/g src/crypto/tfm/fp_sqr_comba.c                            

the joys of using asm for speed, you have to test on any supported platform :(

i suspect it's due to our use of -std=c99 (since asm is not a keyword in ISO C)

There are asm macros in crypto/tc/tomcrypt_macros.h too.

Actually they mix asm and __asm__ in that header.

wrong alert. by default it builds fine, it's just that i had put -std=c99 explicitly into CFLAGS in my recipe to workaround an earlier issue. one could eventually contact the tomsfastmath team about getting their code compatible with std=c99 too...