title: How to compile LibJpeg in universal binary in Mac OSX 10.4
body: <p>I want to compile jpeg-8b in universal binary (ppc,i386). It should be supported in 10.4 and later OSs.  I could do it in 10.5 and 10.6, but the binary is not compatible with 10.4. Thus I tried to compile it in 10.4, but it fails.</p>
  <p>This is my code</p>
  <pre><code>cd jpeg-8b
  
  sudo ./configure CC=&quot;gcc -arch i386  -arch ppc&quot; CXX=&quot;g++ -arch i386 -arch ppc&quot; CPP=&quot;gcc -E&quot; CXXCPP=&quot;g++ -E&quot; -enable-static=yes -enable-shared=no
  </code></pre>
  <p>It fails with the error <code>configure: error: C compiler cannot create executables</code></p>
  <p>How can I compile jpeg-8b in MacOS 10.4?</p>