aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/tinderbox_build6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/tinderbox_build b/tools/tinderbox_build
index ab4234aa..5035b603 100755
--- a/tools/tinderbox_build
+++ b/tools/tinderbox_build
@@ -234,8 +234,10 @@ sub SetupPath {
$Path = $ENV{PATH};
print "Path before: $Path\n";
- if ( $OS eq 'SunOS' ) {
- $ENV{'PATH'} = '/usr/ccs/bin:' . $ENV{'PATH'};
+ # Don't alter path if we're building off a repository tree;
+ # SunOS make will work only out of snapshots and releases.
+ if ( $OS eq 'SunOS' && !( -e '.svn' || -e '.git' )) {
+ $ENV{'PATH'} = '/usr/ccs/bin:' . $ENV{'PATH'};
}
$Path = $ENV{PATH};