• wolfgang's avatar
    [project @ 2005-04-07 05:27:16 by wolfgang] · d79c1cb2
    wolfgang authored
    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
    d79c1cb2
Linker.c 121 KB