Topic: Configure for 32 bit elf

I am trying to compile wolfssl for 32 bit linux-elf.The configuration used with Openssl was

./Configure linux-elf -m32 -march=i586

I tried setting --host=i586.This compiles well but on running gives 'Illegal instruction' error.

Can any one help me with the correct config setting for build?

Share

Re: Configure for 32 bit elf

Hi,

--host is usually a platform (os and chip) that is used for cross compilation.  If you are on a 64bit machine but trying to build for 32bit try:

./configure C_EXTRA_FLAGS=-m32 LDFLAGS=-m32

Thanks,
-Todd

Share