Make assignTemp_ less pessimistic
[ghc-hetmet.git] / compiler / ghci / keepCAFsForGHCi.c
index 0a9c1b4..f125d4c 100644 (file)
@@ -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