Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
humblehacker edited this page Nov 13, 2010 · 11 revisions

Building the dependencies (OS X)

Download

Set environment

Do this once before building all of the above packages.

export MACOSX_DEPLOYMENT_TARGET=10.5
export LDFLAGS="-arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/usr/local/lib"
export CFLAGS="-Os -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/usr/local/include"
export CXXFLAGS="-Os -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk -I/usr/local/include"

Build each package

The instructions are the same for each package. Build them in the order listed above.

Configure

After extracting the tarball, run configure. To avoid errors with -M and -arch, add --disable-dependency-tracking to ./configure.

./configure --disable-dependency-tracking

This is not required for every package, but it doesn't hurt. Just ignore any related warnings.

glib

glib requires some special care. First, apply the following patch:

http://trac.macports.org/export/69965/trunk/dports/devel/glib2/files/patch-configure.in.diff

Then, run autoconf to regenerate configure. (You may need to update autoconf to a newer version first). Once that's done, run configure with one additional argument:

./configure --disable-dependency-tracking --with-libiconv=gnu

Make

Finally, build and install as usual.

make
make install

References

end to end build for mac os x