don't pass -Y at all to the linker on illumos
authorLauri Tirkkonen <lotheac@iki.fi>
Fri, 22 Jan 2016 16:46:27 +0000 (18:46 +0200)
committerLauri Tirkkonen <lotheac@iki.fi>
Mon, 25 Jan 2016 09:09:34 +0000 (11:09 +0200)
the illumos linker can't understand the "-Y/lib"... form that f_check
generates, and -Wl cannot pass options that include commas

f_check

diff --git a/f_check b/f_check
index e7e4688..4c9d81e 100644 (file)
--- a/f_check
+++ b/f_check
@@ -1,5 +1,7 @@
 #!/usr/bin/perl
 
+$hostos   = `uname -s | sed -e s/\-.*//`;    chop($hostos);
+
 #
 # 1. Not specified
 #   1.1 Automatically detect, then check compiler
@@ -272,8 +274,9 @@ if ($link ne "") {
        }
 
        if ($flags =~ /^\-Y/) {
+           next if ($hostos eq 'SunOS');
            $linker_L .= "-Wl,". $flags . " ";
-           }
+        }
 
        if ($flags =~ /^\-rpath\@/) {
            $flags =~ s/\@/\,/g;