I built google perftools 2.0 in Macbook pro (OS X 10.6.8), and tried
to build my application with -lprofile as a linker option. There's a
warning message saying "ld: warning: ignoring file /Developer/SDKs/
MacOSX10.5.sdk/usr/local/lib/libprofiler.dylib, file was built for
unsupported file format which is not the architecture being linked
I checked the perftools configure.log, and saw the line "uname -m =
i386". Seems it configured the system right.
In my linux machine, I saw no problem like this.