Re: xorg-server-1.2a3 compilation problem
Re: xorg-server-1.2a3 compilation problem
- Subject: Re: xorg-server-1.2a3 compilation problem
- From: Jeremy Huddleston <email@hidden>
- Date: Fri, 2 Nov 2007 14:34:23 -0700
So I decided to make a quick compile script to properly compile the
universal binary (ie, reconfigure and use lipo) after sanitizing the
environment from Macports. Here it is. Hopefully someone else will
find it useful.
--Jeremy
Attachment:
compile.sh
Description: Binary data
On Nov 2, 2007, at 12:58 PM, Greg Parker wrote:
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)
This email sent to email@hidden