2008-06-17 13:59:08 +02:00
|
|
|
$NetBSD: README.Solaris,v 1.8 2008/06/17 11:59:08 sketch Exp $
|
2004-03-11 14:03:58 +01:00
|
|
|
|
2004-03-15 15:36:08 +01:00
|
|
|
You will need a working C compiler. Any version of gcc >2.8 should
|
|
|
|
work, 2.95.x and 3.x have been tested. SunPro 5 and 8 have been
|
|
|
|
tested, but versions in between should work, too.
|
2004-03-11 14:03:58 +01:00
|
|
|
|
2004-03-15 15:36:08 +01:00
|
|
|
The following packages are the minimum required on Solaris 8 to
|
|
|
|
bootstrap and build packages.
|
2004-03-11 14:03:58 +01:00
|
|
|
|
|
|
|
- SUNWsprot
|
|
|
|
- SUNWarc
|
|
|
|
- SUNWbtool
|
|
|
|
- SUNWtoo
|
2004-09-12 17:54:46 +02:00
|
|
|
- SUNWscpu
|
2004-09-20 12:43:56 +02:00
|
|
|
- SUNWxcu4
|
2004-03-11 14:03:58 +01:00
|
|
|
|
2004-03-15 15:36:08 +01:00
|
|
|
Realistically you will need more, such as SUNWlibm, and SUNWlibC for
|
|
|
|
C++ packages if you are using SunPro.
|
|
|
|
|
2004-03-11 14:03:58 +01:00
|
|
|
Please note the use of GNU binutils on Solaris is not supported.
|
|
|
|
|
|
|
|
If you are using gcc
|
|
|
|
--------------------
|
|
|
|
It makes life much simpler if you only use the same gcc consistently
|
|
|
|
for building all packages.
|
|
|
|
|
2007-07-02 21:05:29 +02:00
|
|
|
See http://www.netbsd.org/docs/software/packages.html for
|
2004-03-11 14:03:58 +01:00
|
|
|
binary kits and initial packages, including gcc.
|
|
|
|
|
|
|
|
It is recommended that an external gcc be used only for bootstrapping,
|
|
|
|
then remove gcc and install the pkgsrc binary package.
|
|
|
|
|
|
|
|
Binary packages of gcc can be found through
|
2007-01-11 04:34:10 +01:00
|
|
|
http://www.sunfreeware.com/
|
2004-03-11 14:03:58 +01:00
|
|
|
|
|
|
|
If you are using Sun WorkShop
|
|
|
|
-----------------------------
|
2004-03-15 15:36:08 +01:00
|
|
|
You will need at least the following packages installed to build C and
|
|
|
|
C++ packages.
|
|
|
|
|
|
|
|
WorkShop 5.0:
|
2004-03-11 14:03:58 +01:00
|
|
|
|
|
|
|
SPROcc Sun WorkShop Compiler C 5.0
|
|
|
|
SPROcpl Sun WorkShop Compiler C++ 5.0
|
|
|
|
SPROild Sun WorkShop Incremental Linker
|
|
|
|
SPROlang Sun WorkShop Compilers common components
|
|
|
|
|
2004-03-15 15:36:08 +01:00
|
|
|
Sun ONE Studio 8:
|
|
|
|
|
|
|
|
SPROcc Sun ONE Studio 8 Compiler C
|
|
|
|
SPROcpl Sun ONE Studio 8 Compiler C++
|
|
|
|
SPROdwrfb DwarfSupportLibrary binaries
|
|
|
|
SPROild Sun ONE Studio 8 Incremental Linker
|
|
|
|
SPROlang Sun ONE Studio 8 Compilers Common Components
|
|
|
|
SPROsbld Sun ONE Studio 8 Linker Stab Library
|
|
|
|
SPROscl Sun ONE Studio 8 Standard Class Library for C++
|
|
|
|
SPROtlbn7 Sun ONE Studio 8 Tools.h++ 7.1 Class Library for C++
|
|
|
|
SPROutool Sun ONE Studio 8 Common Tools
|
2004-03-11 14:03:58 +01:00
|
|
|
|
2004-03-15 15:36:08 +01:00
|
|
|
The corresponding 64-bit packages are also required to build 64-bit
|
|
|
|
binaries and libraries.
|
2004-03-11 14:03:58 +01:00
|
|
|
|
2008-06-17 13:59:08 +02:00
|
|
|
To build 64-bit binaries, pass '--abi=64' to bootstrap, and also see the
|
|
|
|
crle(1) man page to configure the runtime linking environment.
|
2004-03-15 15:36:08 +01:00
|
|
|
|
2008-06-17 13:59:08 +02:00
|
|
|
pkgsrc defaults to finding the Sun compiler in /opt/SUNWspro. If you use a
|
|
|
|
different prefix, pass SUNWSPROBASE in the environment to bootstrap. If 'cc'
|
|
|
|
is not in your path, pass CC as well. So, to build 64-bit Sun compiler
|
|
|
|
bootstrap with a non-standard install:
|
2004-03-15 15:36:08 +01:00
|
|
|
|
2008-06-17 13:59:08 +02:00
|
|
|
env CC=/opt/studio12/SUNWspro/bin/cc \
|
|
|
|
SUNWSPROBASE=/opt/studio12/SUNWspro \
|
|
|
|
./bootstrap --abi=64
|
2004-03-11 14:03:58 +01:00
|
|
|
|
2008-06-17 13:59:08 +02:00
|
|
|
When bootstrap is finished your default mk.conf will contain ABI and
|
|
|
|
SUNWSPROBASE so you will not need to set these variables again.
|
2004-03-11 14:03:58 +01:00
|
|
|
|
|
|
|
Whichever compiler you use, please ensure the compiler tools and
|
|
|
|
your $prefix are in your PATH. This includes /usr/ccs/{bin,lib}
|
|
|
|
and eg. /usr/pkg/{bin,sbin}.
|
|
|
|
|
2004-03-15 15:36:08 +01:00
|
|
|
bootstrap-pkgsrc has been tested on Solaris 2.6 -> 10.
|