X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdriver%2Fghc.lprl;h=d01f71f06cf310dc12dee181ed84e76a1c4c87e4;hb=6c01550d031fb7c96efa368f241c3291811f208e;hp=0c0cb1ea47733b1955bfa9e814343d9c5e0787df;hpb=8e01cd7297b3463afbb9cf0b8f1a78cc6d05956d;p=ghc-hetmet.git diff --git a/ghc/driver/ghc.lprl b/ghc/driver/ghc.lprl index 0c0cb1e..d01f71f 100644 --- a/ghc/driver/ghc.lprl +++ b/ghc/driver/ghc.lprl @@ -379,7 +379,7 @@ require special handling. # We need to look in ghc/ and glaExts/ when searching for implicitly needed .hi files, but # we should really *not* look there for explicitly imported modules. -$GhcVersionInfo = $ProjectVersionInt +$GhcVersionInfo = $ProjectVersionInt; $Haskell1Version = 4; # i.e., Haskell 1.4 @Cpp_define = (); @@ -1380,11 +1380,14 @@ if ($Do_lnkr) { # for a linker, use an explicitly given one, or the going C compiler ... local($lnkr) = ( $Lnkr ) ? $Lnkr : $CcRegd; + if ( ($Specific_output_file eq '') && + ($TargetPlatform eq 'i386-unknown-cygwin32') ) { + $Specific_output_file = 'main.exe'; + print STDERR "Output file not specified, defaulting to \"main.exe\"\n"; + } + local($output) = ($Specific_output_file ne '') ? "-o $Specific_output_file" : ''; - @Files_to_tidy = ($Specific_output_file ne '') ? - $Specific_output_file : - ( ($TargetPlatform eq 'i386-unknown-cygwin32') ? 'main.exe' : 'a.out'); - print STDERR "Output file not specified, defaulting to \"main.exe\"\n" if ($Specific_output_file eq '' && $TargetPlatform eq 'i386-unknown-cygwin32'); + @Files_to_tidy = ($Specific_output_file ne '') ? $Specific_output_file : 'a.out'; local($to_do) = "$lnkr $Verbose @Ld_flags $output @Link_file $TopClosureFile $libdirs @UserLibrary @SysLibrary"; &run_something($to_do, 'Linker'); @@ -2434,11 +2437,11 @@ sub add_syslib { local($syslib) = @_; unshift(@SysImport_dir, - ${INSTALLING} ? "$InstLibDir/imports/$syslib" + $INSTALLING ? "$InstLibDirGhc/imports/$syslib" : "$TopPwd/$CURRENT_DIR/$GHC_LIB_DIR/$syslib"); push(@SysLibrary_dir, - ${INSTALLING} ? ("$InstLibDir") + $INSTALLING ? ("$InstLibDirGhc") : ("$TopPwd/$CURRENT_DIR/$GHC_LIB_DIR/$syslib", "$TopPwd/$CURRENT_DIR/$GHC_LIB_DIR/$syslib/cbits"));