projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-01-09 10:27:41 by simonmar]
[ghc-hetmet.git]
/
mk
/
target.mk
diff --git
a/mk/target.mk
b/mk/target.mk
index
4fb1ec1
..
b773430
100644
(file)
--- a/
mk/target.mk
+++ b/
mk/target.mk
@@
-257,7
+257,13
@@
endif
ifneq "$(PACKAGE)" ""
# add syslib dependencies and current package name
ifneq "$(PACKAGE)" ""
# add syslib dependencies and current package name
+
+# HACK!!! The conditional below is needed because we pass $(HC_OPTS)
+# directly to mkdependC and sometimes the C compiler in ghc/rts. Todo.
+ifneq "$(PACKAGE)" "rts"
SRC_HC_OPTS += -package-name $(PACKAGE)
SRC_HC_OPTS += -package-name $(PACKAGE)
+endif
+
SRC_HC_OPTS += $(patsubst %, -package %, $(PACKAGE_DEPS))
ifeq "$(IS_CBITS_LIB)" "YES"
SRC_HC_OPTS += $(patsubst %, -package %, $(PACKAGE_DEPS))
ifeq "$(IS_CBITS_LIB)" "YES"