I am trying to create a UB which will run on 10.3 PPC, and 10.4 everywhere,
but I am running into some snags. My situation:
Build machine: i386 iMac, OS X 10.4.8, running Xcode 2.3 (gcc 4.0.1 build
5341).
I am using makefiles, building each architecture independently, and then
combining libs and executables using lipo. Everything was complete and
working, building only for 10.4. Then I got the requirement that the PPC
binary needed to work with 10.3.9. I added "-isysroot
/Developer/SDKs/MacOSX10.3.9.sdk" to my makefiles for object code creation.
Everything built fine, but when running the UB on PPC 10.3.9, I get the
runtime error:
dyld: ./CPSI Undefined symbols:
./MyApp undefined reference to ___cxa_atexit expected to be defined in
/usr/lib/libSystem.B.dylib
So, I went back to add "-syslibroot /Developer/SDKs/MacOSX10.3.9.sdk" to the
link (ld) lines, but now on one of my .dylibs I am building, I am getting an
error of ___cxa_atexit being undefined. What am I missing here? Thanks for
any assistance.