X-compling on intel for 10.3 PPC
X-compling on intel for 10.3 PPC
- Subject: X-compling on intel for 10.3 PPC
- From: Conrad G T Yoder <email@hidden>
- Date: Tue, 13 Feb 2007 21:49:42 -0500
- Thread-topic: X-compling on intel for 10.3 PPC
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.
-Conrad
--
Mellowfields
Top security holiday camps
Luxury without fear
Fun without suspicion
Relax in a panic-free atmosphere
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden