diff --git a/set_soenv.in b/set_soenv.in index 62283e1db665..022a86ea81ca 100755 --- a/set_soenv.in +++ b/set_soenv.in @@ -1321,7 +1321,7 @@ if ($platform =~ m/solaris/ && ! $CC =~ "gcc") $SOLARINC .= '/SC5 '; } # Platform dependent include path at the top of this list of include paths -if ($platform =~ m/solaris/) +if ($platform =~ m/solaris/ && ! $CC =~ "gcc") { $SOLARINC .= $I.$COMPATH.$INCLUDE; }