Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
949cc70c
Commit
949cc70c
authored
27 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1997-12-04 15:01:06 by simonm]
Restore perl4 compatibility.
parent
4e2bf823
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/driver/ghc.lprl
+24
-20
24 additions, 20 deletions
ghc/driver/ghc.lprl
with
24 additions
and
20 deletions
ghc/driver/ghc.lprl
+
24
−
20
View file @
949cc70c
...
...
@@ -2420,6 +2420,25 @@ sub add_Hsc_flags {
}
\end{code}
\begin{code}
sub add_syslib {
local($syslib) = @_;
unshift(@SysImport_dir,
${INSTALLING} ? "$InstSysLibDir/$syslib/imports"
: "$TopPwd/hslibs/$syslib/src");
push(@SysLibrary_dir,
${INSTALLING} ? ("$InstSysLibDir")
: ("$TopPwd/hslibs/$syslib",
"$TopPwd/hslibs/$syslib/cbits"));
push(@SysLibrary, "-lHS$syslib");
push(@SysLibrary, "-lHS${syslib}_cbits")
unless $syslib eq 'contrib'; #HACK! it has no cbits
}
\end{code}
Source files may have {-# OPTIONS ... #-} pragmas at the top, containing
command line options we want to append to collection of commands specified
directly. @check_for_source_options@ looks at the top of a de-lit'ified Haskell
...
...
@@ -2763,7 +2782,6 @@ arg: while($_ = $Args[0]) {
print STDERR "$Pgm: no such system library (-syslib): $syslib\n",
$Status++ unless $syslib =~ /^(hbc|ghc|posix|contrib)$/;
again:
#
# The posix library is a `special' in that it relies on
# the ghc system library (packed strings). Wielding our
...
...
@@ -2771,25 +2789,11 @@ arg: while($_ = $Args[0]) {
# the ghc system library as well.
# (ToDo: `nub' -syslib list)
#
unshift(@SysImport_dir,
${INSTALLING}
? "$InstSysLibDir/$syslib/imports"
: "$TopPwd/hslibs/$syslib/src");
push(@SysLibrary_dir,
${INSTALLING}
? ("$InstSysLibDir")
: ("$TopPwd/hslibs/$syslib"
,"$TopPwd/hslibs/$syslib/cbits"));
push(@SysLibrary, "-lHS$syslib");
push(@SysLibrary, "-lHS${syslib}_cbits")
unless $syslib eq 'contrib'; #HACK! it has no cbits
if ( $syslib eq 'posix') {
$syslib='ghc';
goto again;
} elsif ( $syslib eq 'ghc' && $TargetName =~ /-solaris2$/ ) {
&add_syslib($syslib);
if ( $syslib eq 'posix' ) {
&add_syslib('ghc');
} elsif ( $syslib eq 'ghc' &&
$TargetName =~ /-solaris2$/ ) {
# needed for Berkeley socket/nwork stuff.
push(@SysLibrary, '-lnsl');
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment