the illumos linker can't understand the "-Y/lib"... form that f_check
generates, and -Wl cannot pass options that include commas
#!/usr/bin/perl
+$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
+
#
# 1. Not specified
# 1.1 Automatically detect, then check compiler
}
if ($flags =~ /^\-Y/) {
+ next if ($hostos eq 'SunOS');
$linker_L .= "-Wl,". $flags . " ";
- }
+ }
if ($flags =~ /^\-rpath\@/) {
$flags =~ s/\@/\,/g;