Turn libffi into a Haskell package
[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 #endif
29
30 hs-libraries:   "HSrts"
31
32 extra-libraries:                "m"             /* for ldexp() */
33 #ifndef HAVE_FRAMEWORK_GMP
34                               , "gmp"
35 #ifdef HAVE_LIBDL
36                               , "dl"
37 #endif
38 #endif
39 #ifdef HAVE_LIBRT
40                               , "rt"
41 #endif
42 #ifdef mingw32_HOST_OS
43                               ,"wsock32"        /* for the linker */
44 #endif
45 #ifdef WANT_DOTNET_SUPPORT
46                               , "oleaut32", "ole32", "uuid"
47 #endif
48 #if defined(DEBUG) && defined(HAVE_LIBBFD)
49                               ,"bfd", "iberty"  /* for debugging */
50 #endif
51 #ifdef HAVE_LIBMINGWEX
52 # ifndef INSTALLING                             /* Bundled Mingw is behind */
53                               ,"mingwex"
54 # endif
55 #endif
56 #if USE_PAPI
57                              , "papi"
58 #endif
59
60 #ifdef INSTALLING
61 include-dirs:           INCLUDE_DIR GMP_INCLUDE_DIRS PAPI_INCLUDE_DIR
62 #else /* !INSTALLING */
63 include-dirs:           FPTOOLS_TOP_ABS"/includes"
64                         FPTOOLS_TOP_ABS"/rts"
65                         FPTOOLS_TOP_ABS"/gmp/gmpbuild"
66                         GMP_INCLUDE_DIRS
67 #endif
68
69 includes:               Stg.h
70 depends:                ffi-1.0
71 hugs-options:
72 cc-options:
73
74 ld-options:
75 #ifdef LEADING_UNDERSCORE
76            "-u", "_ghczmprim_GHCziTypes_Izh_static_info"
77          , "-u", "_ghczmprim_GHCziTypes_Czh_static_info"
78          , "-u", "_ghczmprim_GHCziTypes_Fzh_static_info"
79          , "-u", "_ghczmprim_GHCziTypes_Dzh_static_info"
80          , "-u", "_base_GHCziPtr_Ptr_static_info"
81          , "-u", "_base_GHCziWord_Wzh_static_info"
82          , "-u", "_base_GHCziInt_I8zh_static_info"
83          , "-u", "_base_GHCziInt_I16zh_static_info"
84          , "-u", "_base_GHCziInt_I32zh_static_info"
85          , "-u", "_base_GHCziInt_I64zh_static_info"
86          , "-u", "_base_GHCziWord_W8zh_static_info"
87          , "-u", "_base_GHCziWord_W16zh_static_info"
88          , "-u", "_base_GHCziWord_W32zh_static_info"
89          , "-u", "_base_GHCziWord_W64zh_static_info"
90          , "-u", "_base_GHCziStable_StablePtr_static_info"
91          , "-u", "_ghczmprim_GHCziTypes_Izh_con_info"
92          , "-u", "_ghczmprim_GHCziTypes_Czh_con_info"
93          , "-u", "_ghczmprim_GHCziTypes_Fzh_con_info"
94          , "-u", "_ghczmprim_GHCziTypes_Dzh_con_info"
95          , "-u", "_base_GHCziPtr_Ptr_con_info"
96          , "-u", "_base_GHCziPtr_FunPtr_con_info"
97          , "-u", "_base_GHCziStable_StablePtr_con_info"
98          , "-u", "_ghczmprim_GHCziBool_False_closure"
99          , "-u", "_ghczmprim_GHCziBool_True_closure"
100          , "-u", "_base_GHCziPack_unpackCString_closure"
101          , "-u", "_base_GHCziIOBase_stackOverflow_closure"
102          , "-u", "_base_GHCziIOBase_heapOverflow_closure"
103          , "-u", "_base_ControlziExceptionziBase_nonTermination_closure"
104          , "-u", "_base_GHCziIOBase_blockedOnDeadMVar_closure"
105          , "-u", "_base_GHCziIOBase_blockedIndefinitely_closure"
106          , "-u", "_base_ControlziExceptionziBase_nestedAtomically_closure"
107          , "-u", "_base_GHCziWeak_runFinalizzerBatch_closure"
108          , "-u", "_base_GHCziTopHandler_runIO_closure"
109          , "-u", "_base_GHCziTopHandler_runNonIO_closure"
110 #else
111            "-u", "ghczmprim_GHCziTypes_Izh_static_info"
112          , "-u", "ghczmprim_GHCziTypes_Czh_static_info"
113          , "-u", "ghczmprim_GHCziTypes_Fzh_static_info"
114          , "-u", "ghczmprim_GHCziTypes_Dzh_static_info"
115          , "-u", "base_GHCziPtr_Ptr_static_info"
116          , "-u", "base_GHCziWord_Wzh_static_info"
117          , "-u", "base_GHCziInt_I8zh_static_info"
118          , "-u", "base_GHCziInt_I16zh_static_info"
119          , "-u", "base_GHCziInt_I32zh_static_info"
120          , "-u", "base_GHCziInt_I64zh_static_info"
121          , "-u", "base_GHCziWord_W8zh_static_info"
122          , "-u", "base_GHCziWord_W16zh_static_info"
123          , "-u", "base_GHCziWord_W32zh_static_info"
124          , "-u", "base_GHCziWord_W64zh_static_info"
125          , "-u", "base_GHCziStable_StablePtr_static_info"
126          , "-u", "ghczmprim_GHCziTypes_Izh_con_info"
127          , "-u", "ghczmprim_GHCziTypes_Czh_con_info"
128          , "-u", "ghczmprim_GHCziTypes_Fzh_con_info"
129          , "-u", "ghczmprim_GHCziTypes_Dzh_con_info"
130          , "-u", "base_GHCziPtr_Ptr_con_info"
131          , "-u", "base_GHCziPtr_FunPtr_con_info"
132          , "-u", "base_GHCziStable_StablePtr_con_info"
133          , "-u", "ghczmprim_GHCziBool_False_closure"
134          , "-u", "ghczmprim_GHCziBool_True_closure"
135          , "-u", "base_GHCziPack_unpackCString_closure"
136          , "-u", "base_GHCziIOBase_stackOverflow_closure"
137          , "-u", "base_GHCziIOBase_heapOverflow_closure"
138          , "-u", "base_ControlziExceptionziBase_nonTermination_closure"
139          , "-u", "base_GHCziIOBase_blockedOnDeadMVar_closure"
140          , "-u", "base_GHCziIOBase_blockedIndefinitely_closure"
141          , "-u", "base_ControlziExceptionziBase_nestedAtomically_closure"
142          , "-u", "base_GHCziWeak_runFinalizzerBatch_closure"
143          , "-u", "base_GHCziTopHandler_runIO_closure"
144          , "-u", "base_GHCziTopHandler_runNonIO_closure"
145 #endif
146
147 #ifdef LEADING_UNDERSCORE
148          , "-u", "_base_GHCziConc_ensureIOManagerIsRunning_closure"
149 #else
150          , "-u", "base_GHCziConc_ensureIOManagerIsRunning_closure"
151 #endif
152
153 /*  Pick up static libraries in preference over dynamic if in earlier search
154  *  path.  This is important to use the static gmp in preference on Mac OS.
155  *  The used option is specific to the Darwin linker.
156  */
157 #ifdef darwin_BUILD_OS
158          , "-Wl,-search_paths_first"
159 #endif
160
161 framework-dirs:
162
163 #ifdef HAVE_FRAMEWORK_GMP
164 frameworks:     "GMP"
165 #else
166 frameworks:
167 #endif
168
169 haddock-interfaces:
170 haddock-html:
171