View Ticket
Not logged in
Ticket UUID: e5e2e0408ed3d237e803a06a221291e909f55ea8
Title: Universal binary builds for Mac OS X
Status: Open Type: Feature_Request
Severity: Important Priority:
Subsystem: Resolution:
Last Modified: 2010-04-22 18:12:06
Version Found In: [7c37b46b12] 2010-04-15 23:53:15
Description & Comments:
The downloads available on:

http://www.fossil-scm.org/download.html

are for Mac OS X 10.5/10.6 intel only. Please build a universal binary that works with Mac OS X 10.4+. If the 10.4 SDK is installed (should be installed by default with the 10.5 developer tools -- it may be an optional install with the 10.6 tools) into the normal default location of /Developer/SDKs/MacOSX10.4u.sdk then simply using this command:

make \
  CFLAGS='-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4' \
  LDFLAGS='-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4'

instead of just "make" in the fossil source checkout will produce a universal binary that runs on 10.4 or later on PowerPC or Intel machines. (Of course it doesn't hurt to run strip on the final fossil file produced either.)

There are still a lot of PowerPC machines out there (and a fair number of 10.4 ppc machines -- that's the last version of Mac OS X that will run classic apps) and this change is a relatively painless thing to do to support more platforms and make fossil accessible to more folks who are unwilling (or unable) to build from sources themselves on Mac OS X.

I have verified that the universal binary fossil executable built this way runs successfully on these platforms:

  • 10.4 PowerPC G4
  • 10.5 PowerPC G5
  • 10.5 Intel x86_64
  • 10.6 Intel x86_64
and so believe there are no problems with the universal binary produced this way.