FIX #2164: check for ThreadRelocated in isAlive()
[ghc.git] / rts / package.conf.in
1 /* The RTS is just another package! */
2
3 #include "ghcconfig.h"
4 #include "RtsConfig.h"
5
6 name:           PACKAGE
7 version:        1.0
8 license:        BSD3
9 maintainer:     glasgow-haskell-users@haskell.org
10 exposed:        True
11
12 exposed-modules:
13 hidden-modules:
14
15 import-dirs:
16
17 #ifdef INSTALLING
18 library-dirs:           LIB_DIR GMP_LIB_DIRS PAPI_LIB_DIR
19 # ifdef mingw32_HOST_OS
20                         , LIB_DIR"/gcc-lib"
21                         /* force the dist-provided gcc-lib/ into scope. */
22 # endif
23 #else /* !INSTALLING */
24 library-dirs:           FPTOOLS_TOP_ABS"/rts" GMP_LIB_DIRS PAPI_LIB_DIR
25 # if !defined(HAVE_LIBGMP) && !defined(HAVE_FRAMEWORK_GMP)
26                         , FPTOOLS_TOP_ABS"/gmp"
27 # endif
28                         , FPTOOLS_TOP_ABS"/libffi"
29 #endif
30
31 hs-libraries:   "HSrts"
32
33 extra-libraries:                "m"             /* for ldexp() */
34                               , "ffi"
35 #ifndef HAVE_FRAMEWORK_GMP
36                               , "gmp"
37 #ifdef HAVE_LIBDL
38                               , "dl"
39 #endif
40 #endif
41 #ifdef HAVE_LIBRT
42                               , "rt"
43 #endif
44 #ifdef mingw32_HOST_OS
45                               ,"wsock32"        /* for the linker */
46 #endif
47 #ifdef WANT_DOTNET_SUPPORT
48                               , "oleaut32", "ole32", "uuid"
49 #endif
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_PAPI
59                              , "papi"
60 #endif
61
62 #ifdef INSTALLING
63 include-dirs:           INCLUDE_DIR GMP_INCLUDE_DIRS PAPI_INCLUDE_DIR
64 # ifdef mingw32_HOST_OS
65                         , INCLUDE_DIR"/mingw"
66 # endif
67 #else /* !INSTALLING */
68 include-dirs:           FPTOOLS_TOP_ABS"/includes"
69                         FPTOOLS_TOP_ABS"/rts"
70                         FPTOOLS_TOP_ABS"/gmp/gmpbuild"
71                         GMP_INCLUDE_DIRS
72 #endif
73
74 includes:               Stg.h
75 depends:                
76 hugs-options:
77 cc-options:
78
79 ld-options:
80 #ifdef LEADING_UNDERSCORE
81            "-u", "_base_GHCziBase_Izh_static_info"
82          , "-u", "_base_GHCziBase_Czh_static_info"
83          , "-u", "_base_GHCziFloat_Fzh_static_info"
84          , "-u", "_base_GHCziFloat_Dzh_static_info"
85          , "-u", "_base_GHCziPtr_Ptr_static_info"
86          , "-u", "_base_GHCziWord_Wzh_static_info"
87          , "-u", "_base_GHCziInt_I8zh_static_info"
88          , "-u", "_base_GHCziInt_I16zh_static_info"
89          , "-u", "_base_GHCziInt_I32zh_static_info"
90          , "-u", "_base_GHCziInt_I64zh_static_info"
91          , "-u", "_base_GHCziWord_W8zh_static_info"
92          , "-u", "_base_GHCziWord_W16zh_static_info"
93          , "-u", "_base_GHCziWord_W32zh_static_info"
94          , "-u", "_base_GHCziWord_W64zh_static_info"
95          , "-u", "_base_GHCziStable_StablePtr_static_info"
96          , "-u", "_base_GHCziBase_Izh_con_info"
97          , "-u", "_base_GHCziBase_Czh_con_info"
98          , "-u", "_base_GHCziFloat_Fzh_con_info"
99          , "-u", "_base_GHCziFloat_Dzh_con_info"
100          , "-u", "_base_GHCziPtr_Ptr_con_info"
101          , "-u", "_base_GHCziPtr_FunPtr_con_info"
102          , "-u", "_base_GHCziStable_StablePtr_con_info"
103          , "-u", "_ghczmprim_GHCziBool_False_closure"
104          , "-u", "_ghczmprim_GHCziBool_True_closure"
105          , "-u", "_base_GHCziPack_unpackCString_closure"
106          , "-u", "_base_GHCziIOBase_stackOverflow_closure"
107          , "-u", "_base_GHCziIOBase_heapOverflow_closure"
108          , "-u", "_base_GHCziIOBase_NonTermination_closure"
109          , "-u", "_base_GHCziIOBase_BlockedOnDeadMVar_closure"
110          , "-u", "_base_GHCziIOBase_BlockedIndefinitely_closure"
111          , "-u", "_base_GHCziIOBase_Deadlock_closure"
112          , "-u", "_base_GHCziIOBase_NestedAtomically_closure"
113          , "-u", "_base_GHCziWeak_runFinalizzerBatch_closure"
114 #else
115            "-u", "base_GHCziBase_Izh_static_info"
116          , "-u", "base_GHCziBase_Czh_static_info"
117          , "-u", "base_GHCziFloat_Fzh_static_info"
118          , "-u", "base_GHCziFloat_Dzh_static_info"
119          , "-u", "base_GHCziPtr_Ptr_static_info"
120          , "-u", "base_GHCziWord_Wzh_static_info"
121          , "-u", "base_GHCziInt_I8zh_static_info"
122          , "-u", "base_GHCziInt_I16zh_static_info"
123          , "-u", "base_GHCziInt_I32zh_static_info"
124          , "-u", "base_GHCziInt_I64zh_static_info"
125          , "-u", "base_GHCziWord_W8zh_static_info"
126          , "-u", "base_GHCziWord_W16zh_static_info"
127          , "-u", "base_GHCziWord_W32zh_static_info"
128          , "-u", "base_GHCziWord_W64zh_static_info"
129          , "-u", "base_GHCziStable_StablePtr_static_info"
130          , "-u", "base_GHCziBase_Izh_con_info"
131          , "-u", "base_GHCziBase_Czh_con_info"
132          , "-u", "base_GHCziFloat_Fzh_con_info"
133          , "-u", "base_GHCziFloat_Dzh_con_info"
134          , "-u", "base_GHCziPtr_Ptr_con_info"
135          , "-u", "base_GHCziPtr_FunPtr_con_info"
136          , "-u", "base_GHCziStable_StablePtr_con_info"
137          , "-u", "ghczmprim_GHCziBool_False_closure"
138          , "-u", "ghczmprim_GHCziBool_True_closure"
139          , "-u", "base_GHCziPack_unpackCString_closure"
140          , "-u", "base_GHCziIOBase_stackOverflow_closure"
141          , "-u", "base_GHCziIOBase_heapOverflow_closure"
142          , "-u", "base_GHCziIOBase_NonTermination_closure"
143          , "-u", "base_GHCziIOBase_BlockedOnDeadMVar_closure"
144          , "-u", "base_GHCziIOBase_BlockedIndefinitely_closure"
145          , "-u", "base_GHCziIOBase_Deadlock_closure"
146          , "-u", "base_GHCziIOBase_NestedAtomically_closure"
147          , "-u", "base_GHCziWeak_runFinalizzerBatch_closure"
148 #endif
149
150 #ifdef LEADING_UNDERSCORE
151          , "-u", "_base_GHCziConc_ensureIOManagerIsRunning_closure"
152 #else
153          , "-u", "base_GHCziConc_ensureIOManagerIsRunning_closure"
154 #endif
155
156 /*  Pick up static libraries in preference over dynamic if in earlier search
157  *  path.  This is important to use the static gmp in preference on Mac OS.
158  *  The used option is specific to the Darwin linker.
159  */
160 #ifdef darwin_BUILD_OS
161          , "-Wl,-search_paths_first"
162 #endif
163
164 framework-dirs:
165
166 #ifdef HAVE_FRAMEWORK_GMP
167 frameworks:     "GMP"
168 #else
169 frameworks:
170 #endif
171
172 haddock-interfaces:
173 haddock-html:
174