[project @ 2005-04-07 05:27:16 by wolfgang]
authorwolfgang <unknown>
Thu, 7 Apr 2005 05:27:17 +0000 (05:27 +0000)
committerwolfgang <unknown>
Thu, 7 Apr 2005 05:27:17 +0000 (05:27 +0000)
commitd79c1cb2dc7c1ec5cd1ac4cb19d80c056ac2dd5d
treef638973e8f20fda46e162d980ff218c67eb95871
parentba69efdd1d74ce728e790ea8bb682a5b41aa51fb
[project @ 2005-04-07 05:27:16 by wolfgang]
Set the keepCAFs flag (required for GHCi with dynamic libraries) from an
__attribute__((constructor)) function linked to stage 2 ghc if GhcBuildDylibs
is set in mk/build.mk.

The previous hack (setting it from addDLL) didn't work, because a few CAFs
from libHSbase_dyn were evaluated before the Linker was first invoked by
GHCi.

MERGE TO STABLE
ghc/compiler/Makefile
ghc/compiler/ghci/keepCAFsForGHCi.c [new file with mode: 0644]
ghc/rts/Linker.c