diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 904fa2e356cb..c86800eb501d 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -776,9 +776,7 @@ SunOS) need_bsd_install=yes use_bsdinstall=yes - # Use native nawk and sed if available on newer illumos. - /usr/bin/nawk --version 2>/dev/null | grep "awk version " >/dev/null - if [ $? -eq 0 ]; then + if [ -x "/usr/bin/nawk" ]; then bootstrap_awk="/usr/bin/nawk" elif [ ! -x "/usr/gnu/bin/awk" ]; then need_awk=yes diff --git a/mk/tools/tools.SunOS.mk b/mk/tools/tools.SunOS.mk index e6c31a423889..0012639e7eda 100644 --- a/mk/tools/tools.SunOS.mk +++ b/mk/tools/tools.SunOS.mk @@ -212,6 +212,9 @@ TOOLS_PLATFORM.uniq?= /usr/bin/uniq TOOLS_PLATFORM.unzip?= /usr/bin/unzip .endif TOOLS_PLATFORM.wc?= /usr/bin/wc +.if exists(/usr/sfw/bin/wget) +TOOLS_PLATFORM.wget?= /usr/sfw/bin/wget +.endif TOOLS_PLATFORM.xargs?= /usr/bin/xargs .if exists(/usr/bin/xz) TOOLS_PLATFORM.xz?= /usr/bin/xz