title: How can I compile a library in 32bit on a 64bit Mac machine (Mountain Lion)
body: <p>I want to compile tesseract <a href="http://code.google.com/p/tesseract-ocr/" rel="nofollow">http://code.google.com/p/tesseract-ocr/</a> in 32bit on my Macbook. But I have a 64bit Mac OS Mountain Lion machine.</p>
  
  <p>There is a Makefile, and I tried:</p>
  
  <p>(1) $ ./configure --with-arch=i386
  (2) $ $./configure --build=i386-apple-darwin --host=i386-apple-darwin --target=i386-apple-darwin</p>
  
  <p>Both didn't work. The library compiled is still 64bit. Actually for (2) I see, after running the ./configure, it says somethings like "checking for i386-apple-darwin-g++ .. no", actually everything it checked for i386 had a "no" in the end. But the compilation succeed, just the library does not seem to be 32bit.</p>
  
  <p>Anyone can help with this?</p>