Drop dead code in rts/{Prelude.h,package.conf.in}
[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 #if NEED_PTHREAD_LIB
50                               , "pthread"   /* for pthread_getthreadid_np, pthread_create, etc. */
51 #endif
52 #if defined(DEBUG) && defined(HAVE_LIBBFD)
53                               ,"bfd", "iberty"  /* for debugging */
54 #endif
55 #ifdef HAVE_LIBMINGWEX
56 # ifndef INSTALLING                             /* Bundled Mingw is behind */
57                               ,"mingwex"
58 # endif
59 #endif
60 #if USE_LIBDW
61                              , "elf"
62                              , "dw"             /* for backtraces */
63 #endif
64
65 #ifdef INSTALLING
66 include-dirs:           INCLUDE_DIR FFI_INCLUDE_DIR
67 #else /* !INSTALLING */
68 include-dirs:           TOP"/rts/dist/build" TOP"/includes" TOP"/includes/dist-derivedconstants/header" FFI_INCLUDE_DIR
69 #endif
70
71 includes:               Stg.h
72 hugs-options:
73 cc-options:
74
75 ld-options:
76 #ifdef LEADING_UNDERSCORE
77
78            "-Wl,-u,_base_GHCziTopHandler_runIO_closure"
79          , "-Wl,-u,_base_GHCziTopHandler_runNonIO_closure"
80
81          , "-Wl,-u,_ghczmprim_GHCziTuple_Z0T_closure"
82          , "-Wl,-u,_ghczmprim_GHCziTypes_True_closure"
83          , "-Wl,-u,_ghczmprim_GHCziTypes_False_closure"
84          , "-Wl,-u,_base_GHCziPack_unpackCString_closure"
85          , "-Wl,-u,_base_GHCziWeak_runFinalizzerBatch_closure"
86          , "-Wl,-u,_base_GHCziIOziException_stackOverflow_closure"
87          , "-Wl,-u,_base_GHCziIOziException_heapOverflow_closure"
88          , "-Wl,-u,_base_GHCziIOziException_allocationLimitExceeded_closure"
89          , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
90          , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
91          , "-Wl,-u,_base_GHCziIOziException_cannotCompactFunction_closure"
92          , "-Wl,-u,_base_GHCziIOziException_cannotCompactPinned_closure"
93          , "-Wl,-u,_base_GHCziIOziException_cannotCompactMutable_closure"
94          , "-Wl,-u,_base_ControlziExceptionziBase_nonTermination_closure"
95          , "-Wl,-u,_base_ControlziExceptionziBase_nestedAtomically_closure"
96          , "-Wl,-u,_base_GHCziEventziThread_blockedOnBadFD_closure"
97          , "-Wl,-u,_base_GHCziConcziSync_runSparks_closure"
98          , "-Wl,-u,_base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
99          , "-Wl,-u,_base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
100          , "-Wl,-u,_base_GHCziConcziSignal_runHandlersPtr_closure"
101          , "-Wl,-u,_base_GHCziTopHandler_flushStdHandles_closure"
102          , "-Wl,-u,_base_GHCziTopHandler_runMainIO_closure"
103          , "-Wl,-u,_ghczmprim_GHCziTypes_Czh_con_info"
104          , "-Wl,-u,_ghczmprim_GHCziTypes_Izh_con_info"
105          , "-Wl,-u,_ghczmprim_GHCziTypes_Fzh_con_info"
106          , "-Wl,-u,_ghczmprim_GHCziTypes_Dzh_con_info"
107          , "-Wl,-u,_ghczmprim_GHCziTypes_Wzh_con_info"
108          , "-Wl,-u,_base_GHCziPtr_Ptr_con_info"
109          , "-Wl,-u,_base_GHCziPtr_FunPtr_con_info"
110          , "-Wl,-u,_base_GHCziInt_I8zh_con_info"
111          , "-Wl,-u,_base_GHCziInt_I16zh_con_info"
112          , "-Wl,-u,_base_GHCziInt_I32zh_con_info"
113          , "-Wl,-u,_base_GHCziInt_I64zh_con_info"
114          , "-Wl,-u,_base_GHCziWord_W8zh_con_info"
115          , "-Wl,-u,_base_GHCziWord_W16zh_con_info"
116          , "-Wl,-u,_base_GHCziWord_W32zh_con_info"
117          , "-Wl,-u,_base_GHCziWord_W64zh_con_info"
118          , "-Wl,-u,_base_GHCziStable_StablePtr_con_info"
119
120          , "-Wl,-u,_hs_atomic_add8"
121          , "-Wl,-u,_hs_atomic_add16"
122          , "-Wl,-u,_hs_atomic_add32"
123 #if WORD_SIZE_IN_BITS == 64
124          , "-Wl,-u,_hs_atomic_add64"
125 #endif
126          , "-Wl,-u,_hs_atomic_sub8"
127          , "-Wl,-u,_hs_atomic_sub16"
128          , "-Wl,-u,_hs_atomic_sub32"
129 #if WORD_SIZE_IN_BITS == 64
130          , "-Wl,-u,_hs_atomic_sub64"
131 #endif
132          , "-Wl,-u,_hs_atomic_and8"
133          , "-Wl,-u,_hs_atomic_and16"
134          , "-Wl,-u,_hs_atomic_and32"
135 #if WORD_SIZE_IN_BITS == 64
136          , "-Wl,-u,_hs_atomic_and64"
137 #endif
138          , "-Wl,-u,_hs_atomic_nand8"
139          , "-Wl,-u,_hs_atomic_nand16"
140          , "-Wl,-u,_hs_atomic_nand32"
141 #if WORD_SIZE_IN_BITS == 64
142          , "-Wl,-u,_hs_atomic_nand64"
143 #endif
144          , "-Wl,-u,_hs_atomic_or8"
145          , "-Wl,-u,_hs_atomic_or16"
146          , "-Wl,-u,_hs_atomic_or32"
147 #if WORD_SIZE_IN_BITS == 64
148          , "-Wl,-u,_hs_atomic_or64"
149 #endif
150          , "-Wl,-u,_hs_atomic_xor8"
151          , "-Wl,-u,_hs_atomic_xor16"
152          , "-Wl,-u,_hs_atomic_xor32"
153 #if WORD_SIZE_IN_BITS == 64
154          , "-Wl,-u,_hs_atomic_xor64"
155 #endif
156          , "-Wl,-u,_hs_cmpxchg8"
157          , "-Wl,-u,_hs_cmpxchg16"
158          , "-Wl,-u,_hs_cmpxchg32"
159 #if WORD_SIZE_IN_BITS == 64
160          , "-Wl,-u,_hs_cmpxchg64"
161 #endif
162          , "-Wl,-u,_hs_atomicread8"
163          , "-Wl,-u,_hs_atomicread16"
164          , "-Wl,-u,_hs_atomicread32"
165 #if WORD_SIZE_IN_BITS == 64
166          , "-Wl,-u,_hs_atomicread64"
167 #endif
168          , "-Wl,-u,_hs_atomicwrite8"
169          , "-Wl,-u,_hs_atomicwrite16"
170          , "-Wl,-u,_hs_atomicwrite32"
171 #if WORD_SIZE_IN_BITS == 64
172          , "-Wl,-u,_hs_atomicwrite64"
173 #endif
174 #else
175            "-Wl,-u,base_GHCziTopHandler_runIO_closure"
176          , "-Wl,-u,base_GHCziTopHandler_runNonIO_closure"
177
178          , "-Wl,-u,ghczmprim_GHCziTuple_Z0T_closure"
179          , "-Wl,-u,ghczmprim_GHCziTypes_True_closure"
180          , "-Wl,-u,ghczmprim_GHCziTypes_False_closure"
181          , "-Wl,-u,base_GHCziPack_unpackCString_closure"
182          , "-Wl,-u,base_GHCziWeak_runFinalizzerBatch_closure"
183          , "-Wl,-u,base_GHCziIOziException_stackOverflow_closure"
184          , "-Wl,-u,base_GHCziIOziException_heapOverflow_closure"
185          , "-Wl,-u,base_GHCziIOziException_allocationLimitExceeded_closure"
186          , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
187          , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
188          , "-Wl,-u,base_GHCziIOziException_cannotCompactFunction_closure"
189          , "-Wl,-u,base_GHCziIOziException_cannotCompactPinned_closure"
190          , "-Wl,-u,base_GHCziIOziException_cannotCompactMutable_closure"
191          , "-Wl,-u,base_ControlziExceptionziBase_nonTermination_closure"
192          , "-Wl,-u,base_ControlziExceptionziBase_nestedAtomically_closure"
193          , "-Wl,-u,base_GHCziEventziThread_blockedOnBadFD_closure"
194          , "-Wl,-u,base_GHCziConcziSync_runSparks_closure"
195          , "-Wl,-u,base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
196          , "-Wl,-u,base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
197          , "-Wl,-u,base_GHCziConcziSignal_runHandlersPtr_closure"
198          , "-Wl,-u,base_GHCziTopHandler_flushStdHandles_closure"
199          , "-Wl,-u,base_GHCziTopHandler_runMainIO_closure"
200          , "-Wl,-u,ghczmprim_GHCziTypes_Czh_con_info"
201          , "-Wl,-u,ghczmprim_GHCziTypes_Izh_con_info"
202          , "-Wl,-u,ghczmprim_GHCziTypes_Fzh_con_info"
203          , "-Wl,-u,ghczmprim_GHCziTypes_Dzh_con_info"
204          , "-Wl,-u,ghczmprim_GHCziTypes_Wzh_con_info"
205          , "-Wl,-u,base_GHCziPtr_Ptr_con_info"
206          , "-Wl,-u,base_GHCziPtr_FunPtr_con_info"
207          , "-Wl,-u,base_GHCziInt_I8zh_con_info"
208          , "-Wl,-u,base_GHCziInt_I16zh_con_info"
209          , "-Wl,-u,base_GHCziInt_I32zh_con_info"
210          , "-Wl,-u,base_GHCziInt_I64zh_con_info"
211          , "-Wl,-u,base_GHCziWord_W8zh_con_info"
212          , "-Wl,-u,base_GHCziWord_W16zh_con_info"
213          , "-Wl,-u,base_GHCziWord_W32zh_con_info"
214          , "-Wl,-u,base_GHCziWord_W64zh_con_info"
215          , "-Wl,-u,base_GHCziStable_StablePtr_con_info"
216
217          , "-Wl,-u,hs_atomic_add8"
218          , "-Wl,-u,hs_atomic_add16"
219          , "-Wl,-u,hs_atomic_add32"
220 #if WORD_SIZE_IN_BITS == 64
221          , "-Wl,-u,hs_atomic_add64"
222 #endif
223          , "-Wl,-u,hs_atomic_sub8"
224          , "-Wl,-u,hs_atomic_sub16"
225          , "-Wl,-u,hs_atomic_sub32"
226 #if WORD_SIZE_IN_BITS == 64
227          , "-Wl,-u,hs_atomic_sub64"
228 #endif
229          , "-Wl,-u,hs_atomic_and8"
230          , "-Wl,-u,hs_atomic_and16"
231          , "-Wl,-u,hs_atomic_and32"
232 #if WORD_SIZE_IN_BITS == 64
233          , "-Wl,-u,hs_atomic_and64"
234 #endif
235          , "-Wl,-u,hs_atomic_nand8"
236          , "-Wl,-u,hs_atomic_nand16"
237          , "-Wl,-u,hs_atomic_nand32"
238 #if WORD_SIZE_IN_BITS == 64
239          , "-Wl,-u,hs_atomic_nand64"
240 #endif
241          , "-Wl,-u,hs_atomic_or8"
242          , "-Wl,-u,hs_atomic_or16"
243          , "-Wl,-u,hs_atomic_or32"
244 #if WORD_SIZE_IN_BITS == 64
245          , "-Wl,-u,hs_atomic_or64"
246 #endif
247          , "-Wl,-u,hs_atomic_xor8"
248          , "-Wl,-u,hs_atomic_xor16"
249          , "-Wl,-u,hs_atomic_xor32"
250 #if WORD_SIZE_IN_BITS == 64
251          , "-Wl,-u,hs_atomic_xor64"
252 #endif
253          , "-Wl,-u,hs_cmpxchg8"
254          , "-Wl,-u,hs_cmpxchg16"
255          , "-Wl,-u,hs_cmpxchg32"
256 #if WORD_SIZE_IN_BITS == 64
257          , "-Wl,-u,hs_cmpxchg64"
258 #endif
259          , "-Wl,-u,hs_atomicread8"
260          , "-Wl,-u,hs_atomicread16"
261          , "-Wl,-u,hs_atomicread32"
262 #if WORD_SIZE_IN_BITS == 64
263          , "-Wl,-u,hs_atomicread64"
264 #endif
265          , "-Wl,-u,hs_atomicwrite8"
266          , "-Wl,-u,hs_atomicwrite16"
267          , "-Wl,-u,hs_atomicwrite32"
268 #if WORD_SIZE_IN_BITS == 64
269          , "-Wl,-u,hs_atomicwrite64"
270 #endif
271 #endif
272
273 /*  Pick up static libraries in preference over dynamic if in earlier search
274  *  path.  This is important to use the static gmp in preference on Mac OS.
275  *  The used option is specific to the Darwin linker.
276  */
277 #ifdef darwin_HOST_OS
278          , "-Wl,-search_paths_first"
279 #endif
280
281 #if defined(darwin_HOST_OS) && !defined(x86_64_HOST_ARCH)
282          , "-read_only_relocs", "warning"
283 #endif
284
285 framework-dirs:
286
287 haddock-interfaces:
288 haddock-html: