Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
11807eb6
Commit
11807eb6
authored
Mar 29, 2005
by
simonmar
Browse files
[project @ 2005-03-29 14:02:06 by simonmar]
Old GHCs used -package-name instead of -ignore-package.
parent
70960d2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
mk/package.mk
View file @
11807eb6
# -----------------------------------------------------------------------------
# $Id: package.mk,v 1.5
0
2005/03/2
4
1
8:44:16 sof
Exp $
# $Id: package.mk,v 1.5
1
2005/03/2
9
1
4:02:06 simonmar
Exp $
ifneq
"$(PACKAGE)" ""
...
...
@@ -168,14 +168,15 @@ SRC_HC_OPTS += -ignore-package $(PACKAGE)
else
ifneq
"$(strip $(GHC))" ""
# Making the assumption here that standalone packages will be using mk/config.mk:GHC
SRC_HC_OPTS
=
$(
shell
if
(
test
$(GhcCanonVersion)
-ge
603
)
;
then
echo
"-ignore-package
$(PACKAGE)
"
;
fi
)
SRC_HC_OPTS
=
$(
shell
if
(
test
$(GhcCanonVersion)
-ge
603
)
;
then
echo
"-ignore-package
"
;
else
echo
"-package-name"
;
fi
)
$(PACKAGE)
else
SRC_HC_OPTS
+=
-ignore-package
$(PACKAGE)
endif
endif
endif
# STANDALONE_PACKAGE
SRC_HC_OPTS
+=
$(GhcLibHcOpts)
SRC_HC_OPTS
+=
$(
patsubst
%,
-package
%,
$(PACKAGE_DEPS)
)
endif
endif
# NON_HS_PACKAGE
# -fgenerics switches on generation of support code for
# derivable type classes. This is now off by default,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment