Skip to content
Snippets Groups Projects
Commit e8d8e039 authored by sof's avatar sof
Browse files

[project @ 1997-11-29 20:37:09 by sof]

Append -lnsl when using -syslib ghc on Solaris2 boxes (BSD nwork support.); -w as synonym for -Wnot; pass -fsignatures-required through to compiler proper.
parent ef9d3f28
No related merge requests found
...@@ -2789,6 +2789,9 @@ arg: while($_ = $Args[0]) { ...@@ -2789,6 +2789,9 @@ arg: while($_ = $Args[0]) {
if ( $syslib eq 'posix') { if ( $syslib eq 'posix') {
$syslib='ghc'; $syslib='ghc';
goto again; goto again;
} elsif ( $syslib eq 'ghc' && $TargetName =~ /-solaris2$/ ) {
# needed for Berkeley socket/nwork stuff.
push(@SysLibrary, '-lnsl');
} }
next arg; }; next arg; };
...@@ -2966,7 +2969,10 @@ arg: while($_ = $Args[0]) { ...@@ -2966,7 +2969,10 @@ arg: while($_ = $Args[0]) {
/^-fshow-import-specs/ /^-fshow-import-specs/
&& do { push(@HsC_flags, $_); next arg; }; && do { push(@HsC_flags, $_); next arg; };
/^-fwarn-(.*)$/ && do { push(@HsC_flags, $_); next arg; }; /^-fsignatures-required/
&& do { push(@HsC_flags, $_); next arg; };
/^-fwarn-(.*)$/ && do { push(@HsC_flags, $_); next arg; };
/^-fno-(.*)$/ && do { push(@HsC_antiflags, "-f$1"); /^-fno-(.*)$/ && do { push(@HsC_antiflags, "-f$1");
&squashHscFlag("-f$1"); &squashHscFlag("-f$1");
...@@ -2974,7 +2980,7 @@ arg: while($_ = $Args[0]) { ...@@ -2974,7 +2980,7 @@ arg: while($_ = $Args[0]) {
/^-W$/ && do { push(@HsC_flags, @MinusWOpts); next arg; }; /^-W$/ && do { push(@HsC_flags, @MinusWOpts); next arg; };
/^-Wall$/ && do { push(@HsC_flags, @MinusWallOpts); next arg; }; /^-Wall$/ && do { push(@HsC_flags, @MinusWallOpts); next arg; };
/^-Wnot$/ && do { foreach (@Hsc_flags) { /^(-Wnot|w)$/ && do { foreach (@Hsc_flags) {
/^-fwarn-(.*)$/ && do { $_=''; }; /^-fwarn-(.*)$/ && do { $_=''; };
}; };
push(@HsC_antiflags, @StandardWarnings); push(@HsC_antiflags, @StandardWarnings);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment