Re: TechNote for building Universal Binary...
Re: TechNote for building Universal Binary...
- Subject: Re: TechNote for building Universal Binary...
- From: "rohit dhamija" <email@hidden>
- Date: Wed, 12 Apr 2006 09:48:40 +0530
Hi,
Below is my detailed problem:
I am building my static library as universal binary with following settings (as already mentioned in previous post,need to use this on Mac OS 10.3.9, Mac OS 10.4+ powerpc +Intel Mac)
GCC_VERSION_i386 4.0
GCC_VERSION_ppc 3.3
MACOSX_DEPLOYMENT_TARGET_i386 10.4
MACOSX_DEPLOYMENT_TARGET_ppc 10.3
SDKROOT_i386 /Developer/SDKs/MacOSX10.4u.sdk
SDKROOT_ppc /Developer/SDKs/MacOSX10.3.9.sdk
When I link an application with this static library on Mac OS 10.3.9, I am getting following set of errors (22 times)
/////////////////////////////////////////////
ld: ./libMyLibrary.a(Interface.o) r_type field of relocation entry 132 in section (__TEXT,__text) invalid
ld: ./libMyLibrary.a(Interface.o) stray relocation PPC_RELOC_PAIR entry (133) in section (__TEXT,__text)
/////////////////////////////////////////////
I hope I am using the correct settings ? Why is such issue coming on Mac OS 10.3.9 ? The same library links very well with the Mac OS 10.4.5 PowerPc and Intel Mac.
Please comment/suggest.
RDH
On 4/11/06, David Dunham <email@hidden> wrote:
On 11 Apr 2006, at 08:06, rohit dhamija wrote:
> >>Why would you need gcc 2.95 for 10.3.9
if I may ask?
> Answer: I suppose the default gcc that ships with Mac OS 10.3.9 is
> 2.95 (on my system the gcc version is 2.95). plz correct me if i am
> wrong.
>
> We need to ship the product to our customer. They may have
2.95 to
> 3.3 gcc version on their system.
Are you shipping a development tool? If you're just trying to ship a
universal binary, you can use gcc 4.0 to target 10.3.9 (and gcc 3.3
to target 10.2.8).
------------
David Dunham email@hidden http://www.pensee.com/dunham/
"No matter how far you have gone on a wrong road, turn back." -
Turkish proverb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (
This email sent to email@hidden
--
Rohit Dhamija(M) 9818446545
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden