| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: README.Solaris,v 1.14 2012/07/13 16:12:41 jperkin Exp $ | | 1 | $NetBSD: README.Solaris,v 1.15 2016/07/03 15:38:12 sevan Exp $ |
2 | | | 2 | |
3 | You will need a working C compiler. Any version of gcc >2.8 should | | 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 | | 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. | | 5 | tested, but versions in between should work, too. |
6 | | | 6 | |
7 | The following packages are the minimum required on Solaris 8 to | | 7 | The following packages are the minimum required on Solaris 8 to |
8 | bootstrap and build packages. | | 8 | bootstrap and build packages. |
9 | | | 9 | |
10 | - SUNWsprot | | 10 | - SUNWsprot |
11 | - SUNWarc | | 11 | - SUNWarc |
12 | - SUNWbtool | | 12 | - SUNWbtool |
13 | - SUNWtoo | | 13 | - SUNWtoo |
14 | - SUNWscpu | | 14 | - SUNWscpu |
| @@ -98,14 +98,31 @@ is not in your path, pass CC as well. S | | | @@ -98,14 +98,31 @@ is not in your path, pass CC as well. S |
98 | bootstrap with a non-standard install: | | 98 | bootstrap with a non-standard install: |
99 | | | 99 | |
100 | env CC=/opt/studio12/SUNWspro/bin/cc \ | | 100 | env CC=/opt/studio12/SUNWspro/bin/cc \ |
101 | SUNWSPROBASE=/opt/studio12/SUNWspro \ | | 101 | SUNWSPROBASE=/opt/studio12/SUNWspro \ |
102 | ./bootstrap --abi=64 | | 102 | ./bootstrap --abi=64 |
103 | | | 103 | |
104 | When bootstrap is finished your default mk.conf will contain ABI and | | 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. | | 105 | SUNWSPROBASE so you will not need to set these variables again. |
106 | | | 106 | |
107 | Whichever compiler you use, please ensure the compiler tools and | | 107 | Whichever compiler you use, please ensure the compiler tools and |
108 | your $prefix are in your PATH. This includes /usr/ccs/{bin,lib} | | 108 | your $prefix are in your PATH. This includes /usr/ccs/{bin,lib} |
109 | and eg. /usr/pkg/{bin,sbin}. | | 109 | and eg. /usr/pkg/{bin,sbin}. |
110 | | | 110 | |
| | | 111 | You should set the following variables in your mk.conf file: |
| | | 112 | CC= cc |
| | | 113 | CXX= CC |
| | | 114 | CPP= cc -E |
| | | 115 | CXXCPP= CC -E |
| | | 116 | |
| | | 117 | Common problems |
| | | 118 | --------------- |
| | | 119 | Sometimes, when using libtool, /bin/ksh crashes with a segmentation fault. The |
| | | 120 | workaround is to use another shell for the configure scripts, for example by |
| | | 121 | installing shells/bash and adding the following lines to your mk.conf: |
| | | 122 | |
| | | 123 | CONFIG_SHELL= ${LOCALBASE}/bin/bash |
| | | 124 | WRAPPER_SHELL= ${LOCALBASE}/bin/bash |
| | | 125 | |
| | | 126 | Then, rebuild the devel/libtool-base package. |
| | | 127 | |
111 | bootstrap-pkgsrc has been tested on Solaris 2.6 -> 10. | | 128 | bootstrap-pkgsrc has been tested on Solaris 2.6 -> 10. |