package.conf.in 10.6 KB
Newer Older
1
2
/* The RTS is just another package! */

3
#include "ghcconfig.h"
Simon Marlow's avatar
Simon Marlow committed
4
#include "rts/Config.h"
5
#include "MachDeps.h"
6

7
8
name:           rts
version:        1.0
9
id:             rts
10
key:            rts
11
license:        BSD-3-Clause
12
13
maintainer:     glasgow-haskell-users@haskell.org
exposed:        True
14
15
16
17
18

exposed-modules:
hidden-modules:

import-dirs:
19

Ben Gamari's avatar
Ben Gamari committed
20
#if defined(INSTALLING)
Ben Gamari's avatar
Ben Gamari committed
21
library-dirs:           LIB_DIR"/rts" FFI_LIB_DIR
22
#else /* !INSTALLING */
Ben Gamari's avatar
Ben Gamari committed
23
library-dirs:           TOP"/rts/dist/build" FFI_LIB_DIR
24
25
#endif

26
hs-libraries:   "HSrts" FFI_LIB
27

28
extra-libraries:
Ben Gamari's avatar
Ben Gamari committed
29
#if defined(HAVE_LIBM)
30
                                "m"             /* for ldexp() */
31
#endif
Ben Gamari's avatar
Ben Gamari committed
32
#if defined(HAVE_LIBRT)
33
                              , "rt"
34
#endif
Ben Gamari's avatar
Ben Gamari committed
35
#if defined(HAVE_LIBDL)
36
                              , "dl"
37
#endif
Ben Gamari's avatar
Ben Gamari committed
38
#if defined(HAVE_LIBFFI)
39
40
                              , "ffi"
#endif
41
#if HAVE_LIBNUMA
Simon Marlow's avatar
Simon Marlow committed
42
43
                              , "numa"
#endif
Ben Gamari's avatar
Ben Gamari committed
44
#if defined(mingw32_HOST_OS)
45
46
47
                              ,"wsock32"    /* for the linker */
                              ,"gdi32"      /* for the linker */
                              ,"winmm"      /* for the linker */
48
49
                              ,"dbghelp"    /* for crash dump */
                              ,"psapi"      /* for process information.  */
50
#endif
51
#if NEED_PTHREAD_LIB
52
                              , "pthread"   /* for pthread_getthreadid_np, pthread_create, etc. */
53
#endif
54
#if defined(DEBUG) && defined(HAVE_LIBBFD)
55
                              ,"bfd", "iberty"  /* for debugging */
56
#endif
Ben Gamari's avatar
Ben Gamari committed
57
#if defined(HAVE_LIBMINGWEX)
58
59
60
# ifndef INSTALLING                             /* Bundled Mingw is behind */
                              ,"mingwex"
# endif
61
#endif
62
#if USE_LIBDW
63
64
65
                             , "elf"
                             , "dw"             /* for backtraces */
#endif
66

Ben Gamari's avatar
Ben Gamari committed
67
#if defined(INSTALLING)
Ben Gamari's avatar
Ben Gamari committed
68
include-dirs:           INCLUDE_DIR FFI_INCLUDE_DIR
69
#else /* !INSTALLING */
70
include-dirs:           TOP"/rts/dist/build" TOP"/includes" TOP"/includes/dist-derivedconstants/header" FFI_INCLUDE_DIR
71
#endif
72

73
includes:               Stg.h
ross's avatar
ross committed
74
75
hugs-options:
cc-options:
76

77
ld-options:
Ben Gamari's avatar
Ben Gamari committed
78
#if defined(LEADING_UNDERSCORE)
79
80
81
82

           "-Wl,-u,_base_GHCziTopHandler_runIO_closure"
         , "-Wl,-u,_base_GHCziTopHandler_runNonIO_closure"

Simon Marlow's avatar
Simon Marlow committed
83
         , "-Wl,-u,_ghczmprim_GHCziTuple_Z0T_closure"
84
         , "-Wl,-u,_ghczmprim_GHCziTypes_True_closure"
85
         , "-Wl,-u,_ghczmprim_GHCziTypes_False_closure"
86
         , "-Wl,-u,_base_GHCziPack_unpackCString_closure"
87
         , "-Wl,-u,_base_GHCziWeak_runFinalizzerBatch_closure"
88
89
         , "-Wl,-u,_base_GHCziIOziException_stackOverflow_closure"
         , "-Wl,-u,_base_GHCziIOziException_heapOverflow_closure"
90
         , "-Wl,-u,_base_GHCziIOziException_allocationLimitExceeded_closure"
91
92
         , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
         , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
93
94
95
         , "-Wl,-u,_base_GHCziIOziException_cannotCompactFunction_closure"
         , "-Wl,-u,_base_GHCziIOziException_cannotCompactPinned_closure"
         , "-Wl,-u,_base_GHCziIOziException_cannotCompactMutable_closure"
96
         , "-Wl,-u,_base_ControlziExceptionziBase_absentSumFieldError_closure"
97
         , "-Wl,-u,_base_ControlziExceptionziBase_nonTermination_closure"
98
99
         , "-Wl,-u,_base_ControlziExceptionziBase_nestedAtomically_closure"
         , "-Wl,-u,_base_GHCziEventziThread_blockedOnBadFD_closure"
100
         , "-Wl,-u,_base_GHCziConcziSync_runSparks_closure"
101
102
         , "-Wl,-u,_base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
         , "-Wl,-u,_base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
Marios Titas's avatar
Marios Titas committed
103
         , "-Wl,-u,_base_GHCziConcziSignal_runHandlersPtr_closure"
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
         , "-Wl,-u,_base_GHCziTopHandler_flushStdHandles_closure"
         , "-Wl,-u,_base_GHCziTopHandler_runMainIO_closure"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Czh_con_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Izh_con_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Fzh_con_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Dzh_con_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Wzh_con_info"
         , "-Wl,-u,_base_GHCziPtr_Ptr_con_info"
         , "-Wl,-u,_base_GHCziPtr_FunPtr_con_info"
         , "-Wl,-u,_base_GHCziInt_I8zh_con_info"
         , "-Wl,-u,_base_GHCziInt_I16zh_con_info"
         , "-Wl,-u,_base_GHCziInt_I32zh_con_info"
         , "-Wl,-u,_base_GHCziInt_I64zh_con_info"
         , "-Wl,-u,_base_GHCziWord_W8zh_con_info"
         , "-Wl,-u,_base_GHCziWord_W16zh_con_info"
         , "-Wl,-u,_base_GHCziWord_W32zh_con_info"
         , "-Wl,-u,_base_GHCziWord_W64zh_con_info"
         , "-Wl,-u,_base_GHCziStable_StablePtr_con_info"

123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
         , "-Wl,-u,_hs_atomic_add8"
         , "-Wl,-u,_hs_atomic_add16"
         , "-Wl,-u,_hs_atomic_add32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,_hs_atomic_add64"
#endif
         , "-Wl,-u,_hs_atomic_sub8"
         , "-Wl,-u,_hs_atomic_sub16"
         , "-Wl,-u,_hs_atomic_sub32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,_hs_atomic_sub64"
#endif
         , "-Wl,-u,_hs_atomic_and8"
         , "-Wl,-u,_hs_atomic_and16"
         , "-Wl,-u,_hs_atomic_and32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,_hs_atomic_and64"
#endif
         , "-Wl,-u,_hs_atomic_nand8"
         , "-Wl,-u,_hs_atomic_nand16"
         , "-Wl,-u,_hs_atomic_nand32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,_hs_atomic_nand64"
#endif
         , "-Wl,-u,_hs_atomic_or8"
         , "-Wl,-u,_hs_atomic_or16"
         , "-Wl,-u,_hs_atomic_or32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,_hs_atomic_or64"
#endif
         , "-Wl,-u,_hs_atomic_xor8"
         , "-Wl,-u,_hs_atomic_xor16"
         , "-Wl,-u,_hs_atomic_xor32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,_hs_atomic_xor64"
#endif
         , "-Wl,-u,_hs_cmpxchg8"
         , "-Wl,-u,_hs_cmpxchg16"
         , "-Wl,-u,_hs_cmpxchg32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,_hs_cmpxchg64"
#endif
         , "-Wl,-u,_hs_atomicread8"
         , "-Wl,-u,_hs_atomicread16"
         , "-Wl,-u,_hs_atomicread32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,_hs_atomicread64"
#endif
         , "-Wl,-u,_hs_atomicwrite8"
         , "-Wl,-u,_hs_atomicwrite16"
         , "-Wl,-u,_hs_atomicwrite32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,_hs_atomicwrite64"
#endif
177
#else
178
179
180
           "-Wl,-u,base_GHCziTopHandler_runIO_closure"
         , "-Wl,-u,base_GHCziTopHandler_runNonIO_closure"

Simon Marlow's avatar
Simon Marlow committed
181
         , "-Wl,-u,ghczmprim_GHCziTuple_Z0T_closure"
182
         , "-Wl,-u,ghczmprim_GHCziTypes_True_closure"
183
         , "-Wl,-u,ghczmprim_GHCziTypes_False_closure"
184
         , "-Wl,-u,base_GHCziPack_unpackCString_closure"
185
         , "-Wl,-u,base_GHCziWeak_runFinalizzerBatch_closure"
186
187
         , "-Wl,-u,base_GHCziIOziException_stackOverflow_closure"
         , "-Wl,-u,base_GHCziIOziException_heapOverflow_closure"
188
         , "-Wl,-u,base_GHCziIOziException_allocationLimitExceeded_closure"
189
190
         , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
         , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
191
192
193
         , "-Wl,-u,base_GHCziIOziException_cannotCompactFunction_closure"
         , "-Wl,-u,base_GHCziIOziException_cannotCompactPinned_closure"
         , "-Wl,-u,base_GHCziIOziException_cannotCompactMutable_closure"
194
         , "-Wl,-u,base_ControlziExceptionziBase_absentSumFieldError_closure"
195
         , "-Wl,-u,base_ControlziExceptionziBase_nonTermination_closure"
196
197
         , "-Wl,-u,base_ControlziExceptionziBase_nestedAtomically_closure"
         , "-Wl,-u,base_GHCziEventziThread_blockedOnBadFD_closure"
198
         , "-Wl,-u,base_GHCziConcziSync_runSparks_closure"
199
200
         , "-Wl,-u,base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
         , "-Wl,-u,base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
Marios Titas's avatar
Marios Titas committed
201
         , "-Wl,-u,base_GHCziConcziSignal_runHandlersPtr_closure"
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
         , "-Wl,-u,base_GHCziTopHandler_flushStdHandles_closure"
         , "-Wl,-u,base_GHCziTopHandler_runMainIO_closure"
         , "-Wl,-u,ghczmprim_GHCziTypes_Czh_con_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Izh_con_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Fzh_con_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Dzh_con_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Wzh_con_info"
         , "-Wl,-u,base_GHCziPtr_Ptr_con_info"
         , "-Wl,-u,base_GHCziPtr_FunPtr_con_info"
         , "-Wl,-u,base_GHCziInt_I8zh_con_info"
         , "-Wl,-u,base_GHCziInt_I16zh_con_info"
         , "-Wl,-u,base_GHCziInt_I32zh_con_info"
         , "-Wl,-u,base_GHCziInt_I64zh_con_info"
         , "-Wl,-u,base_GHCziWord_W8zh_con_info"
         , "-Wl,-u,base_GHCziWord_W16zh_con_info"
         , "-Wl,-u,base_GHCziWord_W32zh_con_info"
         , "-Wl,-u,base_GHCziWord_W64zh_con_info"
         , "-Wl,-u,base_GHCziStable_StablePtr_con_info"

221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
         , "-Wl,-u,hs_atomic_add8"
         , "-Wl,-u,hs_atomic_add16"
         , "-Wl,-u,hs_atomic_add32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,hs_atomic_add64"
#endif
         , "-Wl,-u,hs_atomic_sub8"
         , "-Wl,-u,hs_atomic_sub16"
         , "-Wl,-u,hs_atomic_sub32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,hs_atomic_sub64"
#endif
         , "-Wl,-u,hs_atomic_and8"
         , "-Wl,-u,hs_atomic_and16"
         , "-Wl,-u,hs_atomic_and32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,hs_atomic_and64"
#endif
         , "-Wl,-u,hs_atomic_nand8"
         , "-Wl,-u,hs_atomic_nand16"
         , "-Wl,-u,hs_atomic_nand32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,hs_atomic_nand64"
#endif
         , "-Wl,-u,hs_atomic_or8"
         , "-Wl,-u,hs_atomic_or16"
         , "-Wl,-u,hs_atomic_or32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,hs_atomic_or64"
#endif
         , "-Wl,-u,hs_atomic_xor8"
         , "-Wl,-u,hs_atomic_xor16"
         , "-Wl,-u,hs_atomic_xor32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,hs_atomic_xor64"
#endif
         , "-Wl,-u,hs_cmpxchg8"
         , "-Wl,-u,hs_cmpxchg16"
         , "-Wl,-u,hs_cmpxchg32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,hs_cmpxchg64"
#endif
         , "-Wl,-u,hs_atomicread8"
         , "-Wl,-u,hs_atomicread16"
         , "-Wl,-u,hs_atomicread32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,hs_atomicread64"
#endif
         , "-Wl,-u,hs_atomicwrite8"
         , "-Wl,-u,hs_atomicwrite16"
         , "-Wl,-u,hs_atomicwrite32"
#if WORD_SIZE_IN_BITS == 64
         , "-Wl,-u,hs_atomicwrite64"
#endif
275
276
#endif

277
278
279
280
/*  Pick up static libraries in preference over dynamic if in earlier search
 *  path.  This is important to use the static gmp in preference on Mac OS.
 *  The used option is specific to the Darwin linker.
 */
Ben Gamari's avatar
Ben Gamari committed
281
#if defined(darwin_HOST_OS)
282
         , "-Wl,-search_paths_first"
283
284
#endif

285
#if defined(darwin_HOST_OS) && !defined(x86_64_HOST_ARCH)
286
287
288
         , "-read_only_relocs", "warning"
#endif

289
290
291
292
framework-dirs:

haddock-interfaces:
haddock-html: