projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Follow changes in Cabal
[ghc-hetmet.git]
/
compiler
/
ghci
/
keepCAFsForGHCi.c
diff --git
a/compiler/ghci/keepCAFsForGHCi.c
b/compiler/ghci/keepCAFsForGHCi.c
index
0a9c1b4
..
f125d4c
100644
(file)
--- a/
compiler/ghci/keepCAFsForGHCi.c
+++ b/
compiler/ghci/keepCAFsForGHCi.c
@@
-6,9
+6,11
@@
// This is required so that GHCi can use dynamic libraries instead of HSxyz.o
// files.
+#ifdef DYNAMIC
static void keepCAFsForGHCi() __attribute__((constructor));
static void keepCAFsForGHCi()
{
keepCAFs = 1;
}
+#endif