You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Laurent Cerveau <lc...@mac.com> on 2008/04/03 20:28:01 UTC

MacOS X SDK support

Hi

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)?
Thanks

laurent

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: MacOS X SDK support

Posted by Jeremy Whitlock <jc...@gmail.com>.
>  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@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org