Build 32 bit application or libraries on 64 bit machine

In order to configure script to build 32bit library on a 64 bit machine, you would have to pass the following arguments :

./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"

Also, If you get an error that says :

configure: error: C++ compiler cannot create executable

You would have to install following additional packages :

yum install gcc-multilib g++-multilib