if ( $syslib eq 'posix') {
$syslib='ghc';
goto again;
+ } elsif ( $syslib eq 'ghc' && $TargetName =~ /-solaris2$/ ) {
+ # needed for Berkeley socket/nwork stuff.
+ push(@SysLibrary, '-lnsl');
}
next arg; };
/^-fshow-import-specs/
&& 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");
&squashHscFlag("-f$1");
/^-W$/ && do { push(@HsC_flags, @MinusWOpts); next arg; };
/^-Wall$/ && do { push(@HsC_flags, @MinusWallOpts); next arg; };
- /^-Wnot$/ && do { foreach (@Hsc_flags) {
+ /^(-Wnot|w)$/ && do { foreach (@Hsc_flags) {
/^-fwarn-(.*)$/ && do { $_=''; };
};
push(@HsC_antiflags, @StandardWarnings);