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