Install toplevel handler inside fork.
[ghc.git] / rts / package.conf.in
1 /* The RTS is just another package! */
2
3 #include "ghcconfig.h"
4 #include "rts/Config.h"
5 #include "MachDeps.h"
6
7 name:           rts
8 version:        1.0
9 id:             rts
10 key:            rts
11 license:        BSD3
12 maintainer:     glasgow-haskell-users@haskell.org
13 exposed:        True
14
15 exposed-modules:
16 hidden-modules:
17
18 import-dirs:
19
20 #ifdef INSTALLING
21 library-dirs:           LIB_DIR"/rts" FFI_LIB_DIR
22 #else /* !INSTALLING */
23 library-dirs:           TOP"/rts/dist/build" FFI_LIB_DIR
24 #endif
25
26 hs-libraries:   "HSrts" FFI_LIB
27
28 extra-libraries:
29 #ifdef HAVE_LIBM
30                                 "m"             /* for ldexp() */
31 #endif
32 #ifdef HAVE_LIBRT
33                               , "rt"
34 #endif
35 #ifdef HAVE_LIBDL
36                               , "dl"
37 #endif
38 #ifdef HAVE_LIBFFI
39                               , "ffi"
40 #endif
41 #if HAVE_LIBNUMA
42                               , "numa"
43 #endif
44 #ifdef mingw32_HOST_OS
45                               ,"wsock32"    /* for the linker */
46                               ,"gdi32"      /* for the linker */
47                               ,"winmm"      /* for the linker */
48 #endif
49                               , "pthread"   /* for pthread_getthreadid_np, pthread_create, etc. */
50 #if defined(DEBUG) && defined(HAVE_LIBBFD)
51                               ,"bfd", "iberty"  /* for debugging */
52 #endif
53 #ifdef HAVE_LIBMINGWEX
54 # ifndef INSTALLING                             /* Bundled Mingw is behind */
55                               ,"mingwex"
56 # endif
57 #endif
58 #if USE_LIBDW
59                              , "elf"
60                              , "dw"             /* for backtraces */
61 #endif
62
63 #ifdef INSTALLING
64 include-dirs:           INCLUDE_DIR FFI_INCLUDE_DIR
65 #else /* !INSTALLING */
66 include-dirs:           TOP"/rts/dist/build" TOP"/includes" TOP"/includes/dist-derivedconstants/header" FFI_INCLUDE_DIR
67 #endif
68
69 includes:               Stg.h
70 hugs-options:
71 cc-options:
72
73 ld-options:
74 #ifdef LEADING_UNDERSCORE
75            "-Wl,-u,_base_GHCziInt_I16zh_con_info"
76          , "-Wl,-u,_base_GHCziInt_I32zh_con_info"
77          , "-Wl,-u,_base_GHCziInt_I64zh_con_info"
78          , "-Wl,-u,_base_GHCziInt_I8zh_con_info"
79          , "-Wl,-u,_base_GHCziPtr_FunPtr_con_info"
80          , "-Wl,-u,_base_GHCziPtr_Ptr_con_info"
81          , "-Wl,-u,_base_GHCziStable_StablePtr_con_info"
82          , "-Wl,-u,_base_GHCziWord_W16zh_con_info"
83          , "-Wl,-u,_base_GHCziWord_W32zh_con_info"
84          , "-Wl,-u,_base_GHCziWord_W64zh_con_info"
85          , "-Wl,-u,_base_GHCziWord_W8zh_con_info"
86          , "-Wl,-u,_ghczmprim_GHCziTypes_Czh_con_info"
87          , "-Wl,-u,_ghczmprim_GHCziTypes_Dzh_con_info"
88          , "-Wl,-u,_ghczmprim_GHCziTypes_Fzh_con_info"
89          , "-Wl,-u,_ghczmprim_GHCziTypes_Izh_con_info"
90          , "-Wl,-u,_ghczmprim_GHCziTypes_Wzh_con_info"
91          , "-Wl,-u,_ghczmprim_GHCziTuple_Z0T_closure"
92          , "-Wl,-u,_ghczmprim_GHCziTypes_False_closure"
93          , "-Wl,-u,_ghczmprim_GHCziTypes_True_closure"
94          , "-Wl,-u,_base_GHCziPack_unpackCString_closure"
95          , "-Wl,-u,_base_GHCziIOziException_stackOverflow_closure"
96          , "-Wl,-u,_base_GHCziIOziException_heapOverflow_closure"
97          , "-Wl,-u,_base_ControlziExceptionziBase_nonTermination_closure"
98          , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
99          , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
100          , "-Wl,-u,_base_GHCziIOziException_allocationLimitExceeded_closure"
101          , "-Wl,-u,_base_ControlziExceptionziBase_nestedAtomically_closure"
102          , "-Wl,-u,_base_GHCziEventziThread_blockedOnBadFD_closure"
103          , "-Wl,-u,_base_GHCziWeak_runFinalizzerBatch_closure"
104          , "-Wl,-u,_base_GHCziTopHandler_flushStdHandles_closure"
105          , "-Wl,-u,_base_GHCziTopHandler_runIO_closure"
106          , "-Wl,-u,_base_GHCziTopHandler_runNonIO_closure"
107          , "-Wl,-u,_base_GHCziTopHandler_runMainIO_closure"
108          , "-Wl,-u,_base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
109          , "-Wl,-u,_base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
110          , "-Wl,-u,_base_GHCziConcziSync_runSparks_closure"
111          , "-Wl,-u,_base_GHCziConcziSignal_runHandlersPtr_closure"
112          , "-Wl,-u,_hs_atomic_add8"
113          , "-Wl,-u,_hs_atomic_add16"
114          , "-Wl,-u,_hs_atomic_add32"
115 #if WORD_SIZE_IN_BITS == 64
116          , "-Wl,-u,_hs_atomic_add64"
117 #endif
118          , "-Wl,-u,_hs_atomic_sub8"
119          , "-Wl,-u,_hs_atomic_sub16"
120          , "-Wl,-u,_hs_atomic_sub32"
121 #if WORD_SIZE_IN_BITS == 64
122          , "-Wl,-u,_hs_atomic_sub64"
123 #endif
124          , "-Wl,-u,_hs_atomic_and8"
125          , "-Wl,-u,_hs_atomic_and16"
126          , "-Wl,-u,_hs_atomic_and32"
127 #if WORD_SIZE_IN_BITS == 64
128          , "-Wl,-u,_hs_atomic_and64"
129 #endif
130          , "-Wl,-u,_hs_atomic_nand8"
131          , "-Wl,-u,_hs_atomic_nand16"
132          , "-Wl,-u,_hs_atomic_nand32"
133 #if WORD_SIZE_IN_BITS == 64
134          , "-Wl,-u,_hs_atomic_nand64"
135 #endif
136          , "-Wl,-u,_hs_atomic_or8"
137          , "-Wl,-u,_hs_atomic_or16"
138          , "-Wl,-u,_hs_atomic_or32"
139 #if WORD_SIZE_IN_BITS == 64
140          , "-Wl,-u,_hs_atomic_or64"
141 #endif
142          , "-Wl,-u,_hs_atomic_xor8"
143          , "-Wl,-u,_hs_atomic_xor16"
144          , "-Wl,-u,_hs_atomic_xor32"
145 #if WORD_SIZE_IN_BITS == 64
146          , "-Wl,-u,_hs_atomic_xor64"
147 #endif
148          , "-Wl,-u,_hs_cmpxchg8"
149          , "-Wl,-u,_hs_cmpxchg16"
150          , "-Wl,-u,_hs_cmpxchg32"
151 #if WORD_SIZE_IN_BITS == 64
152          , "-Wl,-u,_hs_cmpxchg64"
153 #endif
154          , "-Wl,-u,_hs_atomicread8"
155          , "-Wl,-u,_hs_atomicread16"
156          , "-Wl,-u,_hs_atomicread32"
157 #if WORD_SIZE_IN_BITS == 64
158          , "-Wl,-u,_hs_atomicread64"
159 #endif
160          , "-Wl,-u,_hs_atomicwrite8"
161          , "-Wl,-u,_hs_atomicwrite16"
162          , "-Wl,-u,_hs_atomicwrite32"
163 #if WORD_SIZE_IN_BITS == 64
164          , "-Wl,-u,_hs_atomicwrite64"
165 #endif
166 #else
167            "-Wl,-u,base_GHCziInt_I16zh_con_info"
168          , "-Wl,-u,base_GHCziInt_I32zh_con_info"
169          , "-Wl,-u,base_GHCziInt_I64zh_con_info"
170          , "-Wl,-u,base_GHCziInt_I8zh_con_info"
171          , "-Wl,-u,base_GHCziPtr_FunPtr_con_info"
172          , "-Wl,-u,base_GHCziPtr_Ptr_con_info"
173          , "-Wl,-u,base_GHCziStable_StablePtr_con_info"
174          , "-Wl,-u,base_GHCziWord_W16zh_con_info"
175          , "-Wl,-u,base_GHCziWord_W32zh_con_info"
176          , "-Wl,-u,base_GHCziWord_W64zh_con_info"
177          , "-Wl,-u,base_GHCziWord_W8zh_con_info"
178          , "-Wl,-u,ghczmprim_GHCziTypes_Czh_con_info"
179          , "-Wl,-u,ghczmprim_GHCziTypes_Dzh_con_info"
180          , "-Wl,-u,ghczmprim_GHCziTypes_Fzh_con_info"
181          , "-Wl,-u,ghczmprim_GHCziTypes_Izh_con_info"
182          , "-Wl,-u,ghczmprim_GHCziTypes_Wzh_con_info"
183          , "-Wl,-u,ghczmprim_GHCziTuple_Z0T_closure"
184          , "-Wl,-u,ghczmprim_GHCziTypes_False_closure"
185          , "-Wl,-u,ghczmprim_GHCziTypes_True_closure"
186          , "-Wl,-u,base_GHCziPack_unpackCString_closure"
187          , "-Wl,-u,base_GHCziIOziException_stackOverflow_closure"
188          , "-Wl,-u,base_GHCziIOziException_heapOverflow_closure"
189          , "-Wl,-u,base_ControlziExceptionziBase_nonTermination_closure"
190          , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
191          , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
192          , "-Wl,-u,base_GHCziIOziException_allocationLimitExceeded_closure"
193          , "-Wl,-u,base_ControlziExceptionziBase_nestedAtomically_closure"
194          , "-Wl,-u,base_GHCziEventziThread_blockedOnBadFD_closure"
195          , "-Wl,-u,base_GHCziWeak_runFinalizzerBatch_closure"
196          , "-Wl,-u,base_GHCziTopHandler_flushStdHandles_closure"
197          , "-Wl,-u,base_GHCziTopHandler_runIO_closure"
198          , "-Wl,-u,base_GHCziTopHandler_runNonIO_closure"
199          , "-Wl,-u,base_GHCziTopHandler_runMainIO_closure"
200          , "-Wl,-u,base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
201          , "-Wl,-u,base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
202          , "-Wl,-u,base_GHCziConcziSync_runSparks_closure"
203          , "-Wl,-u,base_GHCziConcziSignal_runHandlersPtr_closure"
204          , "-Wl,-u,hs_atomic_add8"
205          , "-Wl,-u,hs_atomic_add16"
206          , "-Wl,-u,hs_atomic_add32"
207 #if WORD_SIZE_IN_BITS == 64
208          , "-Wl,-u,hs_atomic_add64"
209 #endif
210          , "-Wl,-u,hs_atomic_sub8"
211          , "-Wl,-u,hs_atomic_sub16"
212          , "-Wl,-u,hs_atomic_sub32"
213 #if WORD_SIZE_IN_BITS == 64
214          , "-Wl,-u,hs_atomic_sub64"
215 #endif
216          , "-Wl,-u,hs_atomic_and8"
217          , "-Wl,-u,hs_atomic_and16"
218          , "-Wl,-u,hs_atomic_and32"
219 #if WORD_SIZE_IN_BITS == 64
220          , "-Wl,-u,hs_atomic_and64"
221 #endif
222          , "-Wl,-u,hs_atomic_nand8"
223          , "-Wl,-u,hs_atomic_nand16"
224          , "-Wl,-u,hs_atomic_nand32"
225 #if WORD_SIZE_IN_BITS == 64
226          , "-Wl,-u,hs_atomic_nand64"
227 #endif
228          , "-Wl,-u,hs_atomic_or8"
229          , "-Wl,-u,hs_atomic_or16"
230          , "-Wl,-u,hs_atomic_or32"
231 #if WORD_SIZE_IN_BITS == 64
232          , "-Wl,-u,hs_atomic_or64"
233 #endif
234          , "-Wl,-u,hs_atomic_xor8"
235          , "-Wl,-u,hs_atomic_xor16"
236          , "-Wl,-u,hs_atomic_xor32"
237 #if WORD_SIZE_IN_BITS == 64
238          , "-Wl,-u,hs_atomic_xor64"
239 #endif
240          , "-Wl,-u,hs_cmpxchg8"
241          , "-Wl,-u,hs_cmpxchg16"
242          , "-Wl,-u,hs_cmpxchg32"
243 #if WORD_SIZE_IN_BITS == 64
244          , "-Wl,-u,hs_cmpxchg64"
245 #endif
246          , "-Wl,-u,hs_atomicread8"
247          , "-Wl,-u,hs_atomicread16"
248          , "-Wl,-u,hs_atomicread32"
249 #if WORD_SIZE_IN_BITS == 64
250          , "-Wl,-u,hs_atomicread64"
251 #endif
252          , "-Wl,-u,hs_atomicwrite8"
253          , "-Wl,-u,hs_atomicwrite16"
254          , "-Wl,-u,hs_atomicwrite32"
255 #if WORD_SIZE_IN_BITS == 64
256          , "-Wl,-u,hs_atomicwrite64"
257 #endif
258 #endif
259
260 /*  Pick up static libraries in preference over dynamic if in earlier search
261  *  path.  This is important to use the static gmp in preference on Mac OS.
262  *  The used option is specific to the Darwin linker.
263  */
264 #ifdef darwin_HOST_OS
265          , "-Wl,-search_paths_first"
266 #endif
267
268 #if defined(darwin_HOST_OS) && !defined(x86_64_HOST_ARCH)
269          , "-read_only_relocs", "warning"
270 #endif
271
272 framework-dirs:
273
274 haddock-interfaces:
275 haddock-html: