Re: universal binary
Re: universal binary
- Subject: Re: universal binary
- From: "Elwood C. Downey" <email@hidden>
- Date: Sun, 22 Jan 2006 14:56:48 -0700 (MST)
- Importance: Normal
Elwood C. Downey wrote:
> Found it, thanks. Now X11 stuff is linking but I'm getting arch link errors with the basic libc and libm. Looks like I
> need to use everything in that new usr/ subdir. I wonder why the 10.4u installer didn't make all the new libs the
> system defaults? I'm afraid of symlinking it to the real /usr for fear nothing will run after that! But anyway, I
> think I'm on the right track now, thanks again.
To follow up my own post in case others are curious, the key to these universal binaries for us folks using plane old
gcc&make seems to be to add these flags when you compile:
-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
and these flags when you link:
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
I found these described in
http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/compiling/chapter_4_section_3.html
Happy universalizing!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden