title: none of fink macports and homebrew useful on lion?
body: <p>I have an library (flam3) that depends on a few utility libraries from unix (xml2, jpeg, png, z) and I am trying to make an application on Lion that uses it.  I am building with the latest Xcode and when I try to link with the libraries from fink, macports, and homebrew I get the same error:</p>
  
  <p>ld: warning: ignoring file /opt/local/lib/libxml2.a, file was built
  for archive which is not the architecture being linked (i386)</p>
  
  <p>and the libraries look different from ones that work:</p>
  
  <p>bash-3.2$ file /sw/lib/libxml2.a
  /sw/lib/libxml2.a: current ar archive random library</p>
  
  <p>by comparision</p>
  
  <p>bash-3.2$ file ~/Documents/FLAM3/libflam3.a
  /Users/spot/Documents/FLAM3/libflam3.a: Mach-O universal binary with 2
  architectures
  /Users/spot/Documents/FLAM3/libflam3.a (for architecture x86_64):
   current ar archive random library
  /Users/spot/Documents/FLAM3/libflam3.a (for architecture i386):
  current ar archive random library</p>
  
  <p>that's the library that I compiled with Xcode.</p>
  
  <p>Is there any way to get Xcode to accept this library?  Is there any way to get fink/macports/homebrew to generate a library that works with Xcode?  Seems like I am "doing it wrong" as these projects would all be useless if everyone had this problem.... but I don't feel like I've done anything unusual.  Help?</p>