c4e1c3f80cdd8d6a40799c765ad2434d5d676e8c
[ghc-hetmet.git] / ghc / rts / rts.conf.in
1 #include "config.h"
2 #include "Derived.h"
3
4 Package {
5         name           = "rts",  /* The RTS is just another package! */
6         import_dirs    = [],
7         source_dirs    = [],
8
9 #ifdef INSTALLING
10         library_dirs   =  [ "$libdir"
11 # ifdef mingw32_TARGET_OS
12                           /* force the dist-provided gcc-lib/ into scope. */
13                           , "$libdir/gcc-lib"
14 # endif
15 #else /* !INSTALLING */
16         library_dirs    = [ "$libdir/ghc/rts"
17 # ifndef HAVE_LIBGMP
18                           , "$libdir/ghc/rts/gmp"
19 # endif
20 #endif
21                           ],
22
23         hs_libraries      = [ "HSrts" ],
24         extra_libraries   = [ "gmp"
25                             , "m"               /* for ldexp() */
26 #ifdef mingw32_TARGET_OS
27                               ,"winmm"          /* for the threadDelay timer */
28                               ,"wsock32"        /* for the linker */
29 #endif
30 #ifdef USING_LIBBFD
31                               ,"bfd", "iberty"  /* for debugging */
32 #endif
33 #if defined(THREADED_RTS) && !defined(mingw32_TARGET_OS)
34                               ,"pthread"
35 # ifdef osf3_TARGET_OS
36                               ,"exc"
37 # endif
38 #endif
39                             ],
40
41 #ifdef INSTALLING
42         include_dirs    = [ "$libdir/include"
43 # ifdef mingw32_TARGET_OS
44                           , "$libdir/include/mingw"
45 # endif
46                           ],
47 #else /* !INSTALLING */
48         include_dirs    = [ "$libdir/ghc/includes" ],
49 #endif
50
51         c_includes     = [ "Stg.h" ],
52         package_deps   = [],
53         extra_ghc_opts = [],
54         extra_cc_opts  = [],
55                /* the RTS forward-references to a bunch of stuff in the prelude,
56                   so we force it to be included with special options to ld. */
57         extra_ld_opts  =
58          [
59 #ifdef LEADING_UNDERSCORE
60            "-u", "_GHCziBase_Izh_static_info"
61          , "-u", "_GHCziBase_Czh_static_info"
62          , "-u", "_GHCziFloat_Fzh_static_info"
63          , "-u", "_GHCziFloat_Dzh_static_info"
64          , "-u", "_GHCziPtr_Ptr_static_info"
65          , "-u", "_GHCziWord_Wzh_static_info"
66          , "-u", "_GHCziInt_I8zh_static_info"
67          , "-u", "_GHCziInt_I16zh_static_info"
68          , "-u", "_GHCziInt_I32zh_static_info"
69          , "-u", "_GHCziInt_I64zh_static_info"
70          , "-u", "_GHCziWord_W8zh_static_info"
71          , "-u", "_GHCziWord_W16zh_static_info"
72          , "-u", "_GHCziWord_W32zh_static_info"
73          , "-u", "_GHCziWord_W64zh_static_info"
74          , "-u", "_GHCziStable_StablePtr_static_info"
75          , "-u", "_GHCziBase_Izh_con_info"
76          , "-u", "_GHCziBase_Czh_con_info"
77          , "-u", "_GHCziFloat_Fzh_con_info"
78          , "-u", "_GHCziFloat_Dzh_con_info"
79          , "-u", "_GHCziPtr_Ptr_con_info"
80          , "-u", "_GHCziStable_StablePtr_con_info"
81          , "-u", "_GHCziBase_False_closure"
82          , "-u", "_GHCziBase_True_closure"
83          , "-u", "_GHCziPack_unpackCString_closure"
84          , "-u", "_GHCziIOBase_stackOverflow_closure"
85          , "-u", "_GHCziIOBase_heapOverflow_closure"
86          , "-u", "_GHCziIOBase_NonTermination_closure"
87          , "-u", "_GHCziIOBase_BlockedOnDeadMVar_closure"
88          , "-u", "_GHCziIOBase_Deadlock_closure"
89          , "-u", "_GHCziWeak_runFinalizzerBatch_closure"
90          , "-u", "___stginit_Prelude"
91 #else
92            "-u", "GHCziBase_Izh_static_info"
93          , "-u", "GHCziBase_Czh_static_info"
94          , "-u", "GHCziFloat_Fzh_static_info"
95          , "-u", "GHCziFloat_Dzh_static_info"
96          , "-u", "GHCziPtr_Ptr_static_info"
97          , "-u", "GHCziWord_Wzh_static_info"
98          , "-u", "GHCziInt_I8zh_static_info"
99          , "-u", "GHCziInt_I16zh_static_info"
100          , "-u", "GHCziInt_I32zh_static_info"
101          , "-u", "GHCziInt_I64zh_static_info"
102          , "-u", "GHCziWord_W8zh_static_info"
103          , "-u", "GHCziWord_W16zh_static_info"
104          , "-u", "GHCziWord_W32zh_static_info"
105          , "-u", "GHCziWord_W64zh_static_info"
106          , "-u", "GHCziStable_StablePtr_static_info"
107          , "-u", "GHCziBase_Izh_con_info"
108          , "-u", "GHCziBase_Czh_con_info"
109          , "-u", "GHCziFloat_Fzh_con_info"
110          , "-u", "GHCziFloat_Dzh_con_info"
111          , "-u", "GHCziPtr_Ptr_con_info"
112          , "-u", "GHCziStable_StablePtr_con_info"
113          , "-u", "GHCziBase_False_closure"
114          , "-u", "GHCziBase_True_closure"
115          , "-u", "GHCziPack_unpackCString_closure"
116          , "-u", "GHCziIOBase_stackOverflow_closure"
117          , "-u", "GHCziIOBase_heapOverflow_closure"
118          , "-u", "GHCziIOBase_NonTermination_closure"
119          , "-u", "GHCziIOBase_BlockedOnDeadMVar_closure"
120          , "-u", "GHCziIOBase_Deadlock_closure"
121          , "-u", "GHCziWeak_runFinalizzerBatch_closure"
122          , "-u", "__stginit_Prelude"
123 #endif
124          ]
125 }