• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: xorg-server-1.2a3 compilation problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xorg-server-1.2a3 compilation problem


  • Subject: Re: xorg-server-1.2a3 compilation problem
  • From: Greg Parker <email@hidden>
  • Date: Fri, 2 Nov 2007 12:58:09 -0700

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
  • Follow-Ups:
    • Re: xorg-server-1.2a3 compilation problem
      • From: Jeremy Huddleston <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>)

  • Prev by Date: Re: git intro request
  • Next by Date: Re: ssh -X or -Y gives error
  • Previous by thread: Re: xorg-server-1.2a3 compilation problem
  • Next by thread: Re: xorg-server-1.2a3 compilation problem
  • Index(es):
    • Date
    • Thread