Re: Creating universal binary on PowerPC with 10.4.11?
Re: Creating universal binary on PowerPC with 10.4.11?
- Subject: Re: Creating universal binary on PowerPC with 10.4.11?
- From: Andre-John Mas <email@hidden>
- Date: Fri, 18 Jan 2008 01:09:28 -0500
On 18-Jan-08, at 00:36 , Andre-John Mas wrote:
On 17-Jan-08, at 22:34 , Terry Lambert wrote:
On Jan 17, 2008, at 6:34 PM, Andre-John Mas wrote:
Hi,
I recently updated a configure script for a project I am working
on and thought that simply ensuring that the availability of the
10.4u SDK was enough to be able to build a universal binary. When
I run this make file resulting from the configure script I get
told that:
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning fat file: /
usr/lib/libSystem.dylib does not contain an architecture that
matches the specified -arch flag: i386 (file ignored)
Is it not possible to build a universal binary on a PowerPC based
system?
If it is using the system library instead of the SDK library, you
have improperly specified your arguments. Most likely you have
installed new tools on an old system which predates Intel support,
and failed to use the appropriate argument to the "-syslibroot"
directive to the linker.
CFLAGS="$CFLAGS -O -g -mmacosx-version-min=10.4 -isysroot $SDK -
arch i386 -arch ppc"
LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
Looks like my problem was that I did not specify -isysroot for the
LDFLAGS. I also notice that the universal SDK supports only ppc, ppc64
and i386. Any specific support for 64-bit x86 looks like the 10.5 SDK
is required?
Andre
_______________________________________________
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