Kyng Chaos
“The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects.”
- the wisdom of Tarzan

Expat Build

version: 2.0.1
source: http://www.libexpat.org/

Note: this is mainly to make sure we have one, and it's in a consistent location. In Mac OS X, libexpat is in X11. But on OS X Server, you don't normally install X11, yet libexpat is in the Apache 2 distribution on Server. Bleh. The X11 expat is a little out-of-date, and I don't know about Server's copy.

Leopard

configure

in expat source dir:

export MACOSX_DEPLOYMENT_TARGET=10.5
./configure --mandir=/usr/local/share/man \
CFLAGS="-Os -arch i386 -arch x86_64 -arch ppc -arch ppc64"

edit expat_config.h

replace BYTEORDER line:

#ifdef __BIG_ENDIAN__
  #define BYTEORDER 4321
#else
  #define BYTEORDER 1234
#endif

replace WORDS_BIGENDIAN line:

#ifdef __BIG_ENDIAN__
  #define WORDS_BIGENDIAN 1
#else
  #undef WORDS_BIGENDIAN
#endif

Note: only BYTEORDER used in sources.

make & install

make
sudo make install

Tiger

configure

in expat source dir:

export MACOSX_DEPLOYMENT_TARGET=10.4
./configure --mandir=/usr/local/share/man \
CFLAGS="-Os -arch i386 -arch ppc"

If you are compiling on a PPC Mac, add "-isysroot /Developer/SDKs/MacOSX10.4u.sdk" to CFLAGS on the above configure line. ie:

CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"

expat_config.h

same edits as Leopard

make & install

make
sudo make install

Panther

in expat source dir:

./configure --mandir=/usr/local/share/man
make
sudo make install
macosx/build/expat.txt (1596 views) · Last modified: 2008/06/27 14:16 by kyngchaos
Copyright © 2004-2009 William Kyngesburye Driven by DokuWiki Recent changes RSS feed