[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: MacOS X SDK support

From: Jeremy Whitlock <jcscoobyrs_at_gmail.com>
Date: Thu, 3 Apr 2008 14:36:56 -0600

> I am using MacOS X to build SVN and so far so good. One question however :
> is it possible to point an SDK as in MacOS X Developer terminology (like
> build for 10.4, or 10.5)?

Before I answer your question, I wanted to make sure you were aware of
a universal OSX binary already existing so if you just need to install
Subversion to use, look at the following:
http://subversion.tigris.org/project_packages.html The first entry is
maintained by me and is a complete installation with Apache 2.2.x
modules, all language bindings (Java, Perl, Python and Ruby) and
includes all data stores. Now, onto your answer.

Cross compiling on OSX is dead simple. You have a few things that you
need to use:

ARCHFLAGS="-arch ppc -arch i386"
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
LDFLAGS="-Wl,-syslibroot, /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386"
MACOSX_DEPLOYMENT_TARGET=10.4

Obviously you'd change them to suit your needs but those are the
pertinent flags that I use when building the universal binary. I hope
this helps.

Take care,

Jeremy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-04-03 22:37:07 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.