X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fghci%2FkeepCAFsForGHCi.c;h=f125d4c4d0154ccbe1e4064c25f0339f78e9d3ad;hp=0a9c1b41c64e2d8b010f6fd3c91b692b7cf89917;hb=18691d440f90a3dff4ef538091c886af505e5cf5;hpb=a53ccca7894727fcf6de21b5c7b0ea2f7eaec569 diff --git a/compiler/ghci/keepCAFsForGHCi.c b/compiler/ghci/keepCAFsForGHCi.c index 0a9c1b4..f125d4c 100644 --- 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