From d139e15a5e17c812779a38177f89cedf4ac9241a Mon Sep 17 00:00:00 2001 From: sevan Date: Sun, 3 Jul 2016 15:38:12 +0000 Subject: Add notes about common problems & mk.conf snippet for Sun Workshop users from the pkgsrc guide --- bootstrap/README.Solaris | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'bootstrap/README.Solaris') diff --git a/bootstrap/README.Solaris b/bootstrap/README.Solaris index c089b1049cd..66d552d00c6 100644 --- a/bootstrap/README.Solaris +++ b/bootstrap/README.Solaris @@ -1,4 +1,4 @@ -$NetBSD: README.Solaris,v 1.14 2012/07/13 16:12:41 jperkin Exp $ +$NetBSD: README.Solaris,v 1.15 2016/07/03 15:38:12 sevan Exp $ 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 @@ -108,4 +108,21 @@ 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}. +You should set the following variables in your mk.conf file: + CC= cc + CXX= CC + CPP= cc -E + CXXCPP= CC -E + +Common problems +--------------- +Sometimes, when using libtool, /bin/ksh crashes with a segmentation fault. The +workaround is to use another shell for the configure scripts, for example by +installing shells/bash and adding the following lines to your mk.conf: + + CONFIG_SHELL= ${LOCALBASE}/bin/bash + WRAPPER_SHELL= ${LOCALBASE}/bin/bash + +Then, rebuild the devel/libtool-base package. + bootstrap-pkgsrc has been tested on Solaris 2.6 -> 10. -- cgit v1.2.3