[project @ 2003-05-16 14:39:29 by simonmar]
[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   = [
25                             "m"         /* for ldexp() */
26 #ifndef HAVE_FRAMEWORK_HASKELLSUPPORT
27                               , "gmp"
28 #ifdef HAVE_LIBDL
29                               , "dl"
30 #endif
31 #endif
32 #ifdef mingw32_TARGET_OS
33                               ,"wsock32"        /* for the linker */
34 #endif
35 #if defined(DEBUG) && defined(HAVE_LIBBFD)
36                               ,"bfd", "iberty"  /* for debugging */
37 #endif
38 #ifdef HAVE_LIBMINGWEX
39 # ifndef INSTALLING                             /* Bundled Mingw is behind */
40                               ,"mingwex"
41 # endif
42 #endif
43 #if defined(THREADED_RTS) && !defined(mingw32_TARGET_OS)
44                               ,"pthread"
45 # ifdef osf3_TARGET_OS
46                               ,"exc"
47 # endif
48 #endif
49                             ],
50
51 #ifdef INSTALLING
52         include_dirs    = [ "$libdir/include"
53 # ifdef mingw32_TARGET_OS
54                           , "$libdir/include/mingw"
55 # endif
56                           ],
57 #else /* !INSTALLING */
58         include_dirs    = [ "$libdir/ghc/includes" ],
59 #endif
60
61         c_includes     = [ "Stg.h" ],
62         package_deps   = [],
63         extra_ghc_opts = [],
64         extra_cc_opts  = [],
65                /* the RTS forward-references to a bunch of stuff in the prelude,
66                   so we force it to be included with special options to ld. */
67         extra_ld_opts  =
68          [
69 #ifdef LEADING_UNDERSCORE
70            "-u", "_GHCziBase_Izh_static_info"
71          , "-u", "_GHCziBase_Czh_static_info"
72          , "-u", "_GHCziFloat_Fzh_static_info"
73          , "-u", "_GHCziFloat_Dzh_static_info"
74          , "-u", "_GHCziPtr_Ptr_static_info"
75          , "-u", "_GHCziWord_Wzh_static_info"
76          , "-u", "_GHCziInt_I8zh_static_info"
77          , "-u", "_GHCziInt_I16zh_static_info"
78          , "-u", "_GHCziInt_I32zh_static_info"
79          , "-u", "_GHCziInt_I64zh_static_info"
80          , "-u", "_GHCziWord_W8zh_static_info"
81          , "-u", "_GHCziWord_W16zh_static_info"
82          , "-u", "_GHCziWord_W32zh_static_info"
83          , "-u", "_GHCziWord_W64zh_static_info"
84          , "-u", "_GHCziStable_StablePtr_static_info"
85          , "-u", "_GHCziBase_Izh_con_info"
86          , "-u", "_GHCziBase_Czh_con_info"
87          , "-u", "_GHCziFloat_Fzh_con_info"
88          , "-u", "_GHCziFloat_Dzh_con_info"
89          , "-u", "_GHCziPtr_Ptr_con_info"
90          , "-u", "_GHCziPtr_FunPtr_con_info"
91          , "-u", "_GHCziStable_StablePtr_con_info"
92          , "-u", "_GHCziBase_False_closure"
93          , "-u", "_GHCziBase_True_closure"
94          , "-u", "_GHCziPack_unpackCString_closure"
95          , "-u", "_GHCziIOBase_stackOverflow_closure"
96          , "-u", "_GHCziIOBase_heapOverflow_closure"
97          , "-u", "_GHCziIOBase_NonTermination_closure"
98          , "-u", "_GHCziIOBase_BlockedOnDeadMVar_closure"
99          , "-u", "_GHCziIOBase_Deadlock_closure"
100          , "-u", "_GHCziWeak_runFinalizzerBatch_closure"
101          , "-u", "___stginit_Prelude"
102 #else
103            "-u", "GHCziBase_Izh_static_info"
104          , "-u", "GHCziBase_Czh_static_info"
105          , "-u", "GHCziFloat_Fzh_static_info"
106          , "-u", "GHCziFloat_Dzh_static_info"
107          , "-u", "GHCziPtr_Ptr_static_info"
108          , "-u", "GHCziWord_Wzh_static_info"
109          , "-u", "GHCziInt_I8zh_static_info"
110          , "-u", "GHCziInt_I16zh_static_info"
111          , "-u", "GHCziInt_I32zh_static_info"
112          , "-u", "GHCziInt_I64zh_static_info"
113          , "-u", "GHCziWord_W8zh_static_info"
114          , "-u", "GHCziWord_W16zh_static_info"
115          , "-u", "GHCziWord_W32zh_static_info"
116          , "-u", "GHCziWord_W64zh_static_info"
117          , "-u", "GHCziStable_StablePtr_static_info"
118          , "-u", "GHCziBase_Izh_con_info"
119          , "-u", "GHCziBase_Czh_con_info"
120          , "-u", "GHCziFloat_Fzh_con_info"
121          , "-u", "GHCziFloat_Dzh_con_info"
122          , "-u", "GHCziPtr_Ptr_con_info"
123          , "-u", "GHCziPtr_FunPtr_con_info"
124          , "-u", "GHCziStable_StablePtr_con_info"
125          , "-u", "GHCziBase_False_closure"
126          , "-u", "GHCziBase_True_closure"
127          , "-u", "GHCziPack_unpackCString_closure"
128          , "-u", "GHCziIOBase_stackOverflow_closure"
129          , "-u", "GHCziIOBase_heapOverflow_closure"
130          , "-u", "GHCziIOBase_NonTermination_closure"
131          , "-u", "GHCziIOBase_BlockedOnDeadMVar_closure"
132          , "-u", "GHCziIOBase_Deadlock_closure"
133          , "-u", "GHCziWeak_runFinalizzerBatch_closure"
134          , "-u", "__stginit_Prelude"
135 #endif
136          ]
137 #ifdef HAVE_FRAMEWORK_HASKELLSUPPORT
138         , extra_frameworks  = [ "HaskellSupport" ]
139 #endif
140 }