building Kaleidoscope in xcode

i went thru Kaleidoscope (very helpful) building stuff on the command line (Mac OS X). everything builds and runs – no real problem. trying to build the same under xcode was met with somewhat limited success.
i’ve created a project and added macros and libs per llvm-config. all compiles with no problem. also, xcode seems to be smart enough to know that libm was merged into libSystem and is implicitly linked in – so even tho it let’s you select libm (ala -lm), it doesn’t add it to the explicit lib list. all this is great wonderful, except for a whole bunch of link errors that clearly indicate math functions not being defined. i must be missing something – any help would be greatly appreciated.

thnx, /udi