Skip to content

Commit

Permalink
Use $CC_PATH (with the trailing slash removed) instead of $COMPATH
Browse files Browse the repository at this point in the history
when setting $PATH.  The latter has the trailing /bin removed from
the path to the compiler executable and results in /usr being
incorrectly added to $PATH.

Remove an older, FreeBSD-specific workaround.



git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1820483 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Don Lewis committed Jan 7, 2018
1 parent b92aace commit deb9523
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main/set_soenv.in
Expand Up @@ -359,7 +359,7 @@ elsif ( $platform =~ m/kfreebsd/ )
elsif ( $platform =~ m/freebsd/ )
{ $BIG_SVX = "TRUE";
$COM = "@COM_IS@";
$COMPATH = '@COMPATH@' . '/bin';
$COMPATH = '@COMPATH@';
$CVER = "C300";
$GUI = "UNX";
$GUIBASE = "unx";
Expand Down Expand Up @@ -1134,8 +1134,10 @@ if ($platform =~ m/linux|netbsd|odf1|freebsd|aix|solaris/)
} else {
@javaBits = ();
}
my $ccdir = "@CC_PATH@";
$ccdir =~ s/\/$//;
$PATH = GetCorrectPath ($PATH,
$COMPATH, $CC,
$ccdir, $CC,
$PERL_PATH, 'perl',
@javaBits);
}
Expand Down

0 comments on commit deb9523

Please sign in to comment.