Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xorg-server-1.2a3 compilation problem



On Nov 2, 2007, at 8:38 AM, Jeremy Huddleston wrote:
# Universal
export CFLAGS="-arch ppc -arch i386 -pipe"
export LDFLAGS="-arch ppc -arch i386 -pipe"
./configure --prefix=/usr/X11 --with-mesa-source=`pwd`/../ Mesa-6.5.2/ --disable-dependency-tracking

In general, this approach is discouraged. `configure` scripts often create architecture-specific #defines for the project (particularly endianness and pointer size). The result would be a binary that's compiled for several architectures, but only runs correctly on the one that matches the build machine.


The safer way to do this is:
1. configure and build one architecture at a time
2. use `lipo` to combine the results into a single universal binary file.



-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >xorg-server-1.2a3 compilation problem (From: Jeremy Huddleston <email@hidden>)
 >Re: xorg-server-1.2a3 compilation problem (From: Ben Byer <email@hidden>)
 >Re: xorg-server-1.2a3 compilation problem (From: Jeremy Huddleston <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.