[project @ 2002-02-12 15:17:13 by simonmar]
[ghc-hetmet.git] / ghc / rts / rts.conf.in
diff --git a/ghc/rts/rts.conf.in b/ghc/rts/rts.conf.in
new file mode 100644 (file)
index 0000000..c28dd2c
--- /dev/null
@@ -0,0 +1,121 @@
+#include "config.h"
+
+Package {
+       name           = "rts",  /* The RTS is just another package! */
+        import_dirs    = [],
+        source_dirs    = [],
+
+#ifdef INSTALLING
+        library_dirs   =  [ "$libdir"
+# ifdef mingw32_TARGET_OS
+                         /* force the dist-provided gcc-lib/ into scope. */
+                         , "$libdir/gcc-lib"
+# endif
+#else /* !INSTALLING */
+        library_dirs   = [ "$libdir/ghc/rts"
+# ifdef HAVE_LIBGMP
+                         , "$libdir/ghc/rts/gmp"
+# endif
+                         ],
+#endif
+
+        hs_libraries      = [ "HSrts" ],
+       extra_libraries   = [ "gmp"
+                           , "m"               /* for ldexp() */
+#ifdef mingw32_TARGET_OS
+                             ,"winmm"          /* for the threadDelay timer */
+                             ,"wsock32"        /* for the linker */
+#endif
+#ifdef USING_LIBBFD
+                             ,"bfd", "iberty"  /* for debugging */
+#endif
+#ifdef THREADED_RTS
+                             ,"pthread"
+#endif
+                           ],
+
+#ifdef INSTALLING
+        include_dirs   = [ "$libdir/include"
+# ifdef mingw32_TARGET_OS
+                         , "$libdir/include/mingw"
+# endif
+                         ],
+#else /* !INSTALLING */
+       include_dirs    = [ "$libdir/ghc/includes" ],
+#endif
+
+        c_includes     = [ "Stg.h" ],
+        package_deps   = [],
+        extra_ghc_opts = [],
+        extra_cc_opts  = [],
+               /* the RTS forward-references to a bunch of stuff in the prelude,
+                  so we force it to be included with special options to ld. */
+        extra_ld_opts  =
+         [
+#ifdef LEADING_UNDERSCORE
+           "-u", "_GHCziBase_Izh_static_info"
+         , "-u", "_GHCziBase_Czh_static_info"
+         , "-u", "_GHCziFloat_Fzh_static_info"
+         , "-u", "_GHCziFloat_Dzh_static_info"
+         , "-u", "_GHCziPtr_Ptr_static_info"
+         , "-u", "_GHCziWord_Wzh_static_info"
+         , "-u", "_GHCziInt_I8zh_static_info"
+         , "-u", "_GHCziInt_I16zh_static_info"
+         , "-u", "_GHCziInt_I32zh_static_info"
+         , "-u", "_GHCziInt_I64zh_static_info"
+         , "-u", "_GHCziWord_W8zh_static_info"
+         , "-u", "_GHCziWord_W16zh_static_info"
+         , "-u", "_GHCziWord_W32zh_static_info"
+         , "-u", "_GHCziWord_W64zh_static_info"
+         , "-u", "_GHCziStable_StablePtr_static_info"
+         , "-u", "_GHCziBase_Izh_con_info"
+         , "-u", "_GHCziBase_Czh_con_info"
+         , "-u", "_GHCziFloat_Fzh_con_info"
+         , "-u", "_GHCziFloat_Dzh_con_info"
+         , "-u", "_GHCziPtr_Ptr_con_info"
+         , "-u", "_GHCziStable_StablePtr_con_info"
+         , "-u", "_GHCziBase_False_closure"
+         , "-u", "_GHCziBase_True_closure"
+         , "-u", "_GHCziPack_unpackCString_closure"
+         , "-u", "_GHCziIOBase_stackOverflow_closure"
+         , "-u", "_GHCziIOBase_heapOverflow_closure"
+         , "-u", "_GHCziIOBase_NonTermination_closure"
+         , "-u", "_GHCziIOBase_BlockedOnDeadMVar_closure"
+         , "-u", "_GHCziIOBase_Deadlock_closure"
+         , "-u", "_GHCziWeak_runFinalizzerBatch_closure"
+         , "-u", "___stginit_Prelude"
+#else
+           "-u", "GHCziBase_Izh_static_info"
+         , "-u", "GHCziBase_Czh_static_info"
+         , "-u", "GHCziFloat_Fzh_static_info"
+         , "-u", "GHCziFloat_Dzh_static_info"
+         , "-u", "GHCziPtr_Ptr_static_info"
+         , "-u", "GHCziWord_Wzh_static_info"
+         , "-u", "GHCziInt_I8zh_static_info"
+         , "-u", "GHCziInt_I16zh_static_info"
+         , "-u", "GHCziInt_I32zh_static_info"
+         , "-u", "GHCziInt_I64zh_static_info"
+         , "-u", "GHCziWord_W8zh_static_info"
+         , "-u", "GHCziWord_W16zh_static_info"
+         , "-u", "GHCziWord_W32zh_static_info"
+         , "-u", "GHCziWord_W64zh_static_info"
+         , "-u", "GHCziStable_StablePtr_static_info"
+         , "-u", "GHCziBase_Izh_con_info"
+         , "-u", "GHCziBase_Czh_con_info"
+         , "-u", "GHCziFloat_Fzh_con_info"
+         , "-u", "GHCziFloat_Dzh_con_info"
+         , "-u", "GHCziPtr_Ptr_con_info"
+         , "-u", "GHCziStable_StablePtr_con_info"
+         , "-u", "GHCziBase_False_closure"
+         , "-u", "GHCziBase_True_closure"
+         , "-u", "GHCziPack_unpackCString_closure"
+         , "-u", "GHCziIOBase_stackOverflow_closure"
+         , "-u", "GHCziIOBase_heapOverflow_closure"
+         , "-u", "GHCziIOBase_NonTermination_closure"
+         , "-u", "GHCziIOBase_BlockedOnDeadMVar_closure"
+         , "-u", "GHCziIOBase_Deadlock_closure"
+         , "-u", "GHCziWeak_runFinalizzerBatch_closure"
+         , "-u", "__stginit_Prelude"
+#endif
+         ]
+}