1 $NetBSD: README.Solaris,v 1.13 2012/01/11 01:15:17 riz Exp $
3 You will need a working C compiler. Any version of gcc >2.8 should
4 work, 2.95.x and 3.x have been tested. SunPro 5 and 8 have been
5 tested, but versions in between should work, too.
7 The following packages are the minimum required on Solaris 8 to
8 bootstrap and build packages.
17 Realistically you will need more, such as SUNWlibm, and SUNWlibC for
18 C++ packages if you are using SunPro.
20 Please note the use of GNU binutils on Solaris is not supported.
22 pkgsrc in Solaris Zones
23 -----------------------
25 If you are trying to bootstrap pkgsrc in a Solaris Zone then you will
26 need to install the following packages (assuming you will bootstrap using
41 Tested on OpenSolaris 5.11 snv_105 and pkgsrc bootstrap as at Jan 2009.
45 It makes life much simpler if you only use the same gcc consistently
46 for building all packages.
48 See http://www.NetBSD.org/docs/software/packages.html for
49 binary kits and initial packages, including gcc.
51 If the gcc installation is not in your $PATH you will need to pass
52 additional flags to bootstrap, for example:
54 env CC=/opt/gcc-4.6.3/bin/gcc \
55 GCCBASE=/opt/gcc-4.6.3 \
58 It is recommended that an external gcc be used only for bootstrapping,
59 and that you set USE_PKGSRC_GCC=yes in mk.conf so that the appropriate
60 pkgsrc gcc is installed and used.
62 Binary packages of gcc can be found through
63 http://www.sunfreeware.com/
65 If you are using Sun WorkShop
66 -----------------------------
67 You will need at least the following packages installed to build C and
72 SPROcc Sun WorkShop Compiler C 5.0
73 SPROcpl Sun WorkShop Compiler C++ 5.0
74 SPROild Sun WorkShop Incremental Linker
75 SPROlang Sun WorkShop Compilers common components
79 SPROcc Sun ONE Studio 8 Compiler C
80 SPROcpl Sun ONE Studio 8 Compiler C++
81 SPROdwrfb DwarfSupportLibrary binaries
82 SPROild Sun ONE Studio 8 Incremental Linker
83 SPROlang Sun ONE Studio 8 Compilers Common Components
84 SPROsbld Sun ONE Studio 8 Linker Stab Library
85 SPROscl Sun ONE Studio 8 Standard Class Library for C++
86 SPROtlbn7 Sun ONE Studio 8 Tools.h++ 7.1 Class Library for C++
87 SPROutool Sun ONE Studio 8 Common Tools
89 The corresponding 64-bit packages are also required to build 64-bit
90 binaries and libraries.
92 To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see the
93 crle(1) man page to configure the runtime linking environment.
95 pkgsrc defaults to finding the Sun compiler in /opt/SUNWspro. If you use a
96 different prefix, pass SUNWSPROBASE in the environment to bootstrap. If 'cc'
97 is not in your path, pass CC as well. So, to build 64-bit Sun compiler
98 bootstrap with a non-standard install:
100 env CC=/opt/studio12/SUNWspro/bin/cc \
101 SUNWSPROBASE=/opt/studio12/SUNWspro \
104 When bootstrap is finished your default mk.conf will contain ABI and
105 SUNWSPROBASE so you will not need to set these variables again.
107 Whichever compiler you use, please ensure the compiler tools and
108 your $prefix are in your PATH. This includes /usr/ccs/{bin,lib}
109 and eg. /usr/pkg/{bin,sbin}.
111 bootstrap-pkgsrc has been tested on Solaris 2.6 -> 10.