you need to change gcc compiler to emcc
export CC=emcc export CXX=em++ export AR=emar export RANLIB=emranlib emconfigure ./configure ... emmake make