X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghci%2FkeepCAFsForGHCi.c;h=f125d4c4d0154ccbe1e4064c25f0339f78e9d3ad;hb=9176377bf7d989919fe7d27cad1f56bd9c4e7b6b;hp=0a9c1b41c64e2d8b010f6fd3c91b692b7cf89917;hpb=a53ccca7894727fcf6de21b5c7b0ea2f7eaec569;p=ghc-hetmet.git 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