update Tue Jun 22 06:37:08 PDT 2010
[pkgsrc.git] / bootstrap / README.MacOSX
1 $NetBSD: README.MacOSX,v 1.8 2010/02/21 19:04:07 schmonz Exp $
2
3
4 Mac OS X Snow Leopard Binary ABI problem:
5
6 Mac OS X Snow Leopard supports 64-Bit binaries on most Intel Macs
7 and builds those by default on such machine. This causes problems
8 with a lot of packages which get confused because "MACHINE_ARCH"
9 is set to "i386" (on a 64-bit system!). There are also packages
10 that don't support 64-bit under Mac OS X at all. It is therefore
11 recommended that use the "--abi 32" option of "bootstrap"
12 under Mac OS X Snow Leopard at the moment.
13
14
15 Developer tools:
16
17 If you haven't already, you will need to install the Mac OS X Developer
18 Tools package. Depending on the version of OS X you are running, you
19 may have this on CD. If not, you can download it from Apple's
20 Developer Connection. (You will need to register for a free ADC
21 account.) See http://developer.apple.com/macosx/ for details.
22
23 Note for MacOS X 1.4 (Tiger) you will need to download xcode 2.5
24 if you intend to use gcc 4.  gcc 4.0.0 bundled with xcode 2.0 on
25 the desktop installation dvds builds broken pkg_install tools.
26
27 If you plan to build packages that use the X11 Window System, you will
28 also need to make sure you have X11 installed. OS X 10.3 (Panther)
29 includes X11 and X11 SDK packages on CD. If you are using an older
30 version of OS X, you can install the XFree86 packages instead, from
31 www.xfree86.org.
32
33 Experimental support for IBM's XL C/C++ compiler is present (tested
34 with version 6.0). To use it, set:
35
36 PKGSRC_COMPILER=xlc
37
38 in mk.conf. XL C uses the Apple provided libtool to create shared
39 libraries, however, we must force it to call libtool with the full
40 path to avoid calling the pkgsrc provided GNU libtool with arguments
41 that it does not understand.
42
43 edit the template configuration file /opt/ibmcmp/vac/6.0/etc/vac.base.cfg
44 and set:
45
46 libtool = /usr/bin/libtool
47
48 then run:
49
50 /opt/ibmcmp/vacpp/6.0/bin/vacpp_configure -gcc /usr -install -force
51
52 as root to install the configuration.
53
54 to bootstrap with xlc, you need to make sure CFLAGS contains "-ma":
55
56 env CC=/opt/ibmcmp/vacpp/6.0/bin/xlc CFLAGS=-ma ./bootstrap