compiler: fix trac issue #9817
[ghc.git] / rts / package.conf.in
1 /* The RTS is just another package! */
2
3 #include "ghcconfig.h"
4 #include "rts/Config.h"
5
6 name:           rts
7 version:        1.0
8 id:             builtin_rts
9 key:            rts
10 license:        BSD3
11 maintainer:     glasgow-haskell-users@haskell.org
12 exposed:        True
13
14 exposed-modules:
15 hidden-modules:
16
17 import-dirs:
18
19 #ifdef INSTALLING
20 library-dirs:           LIB_DIR"/rts" PAPI_LIB_DIR FFI_LIB_DIR
21 #else /* !INSTALLING */
22 library-dirs:           TOP"/rts/dist/build" PAPI_LIB_DIR FFI_LIB_DIR
23 #endif
24
25 hs-libraries:   "HSrts" FFI_LIB
26
27 extra-libraries:
28 #ifdef HAVE_LIBM
29                                 "m"             /* for ldexp() */
30 #endif
31 #ifdef HAVE_LIBRT
32                               , "rt"
33 #endif
34 #ifdef HAVE_LIBDL
35                               , "dl"
36 #endif
37 #ifdef HAVE_LIBFFI
38                               , "ffi"
39 #endif
40 #ifdef mingw32_HOST_OS
41                               ,"wsock32"    /* for the linker */
42                               ,"gdi32"      /* for the linker */
43                               ,"winmm"      /* for the linker */
44 #endif
45 #ifdef freebsd_HOST_OS
46                               , "pthread" /* for pthread_getthreadid_np() */
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 PAPI_INCLUDE_DIR FFI_INCLUDE_DIR
62 #else /* !INSTALLING */
63 include-dirs:           TOP"/rts/dist/build" TOP"/includes" TOP"/includes/dist-derivedconstants/header" FFI_INCLUDE_DIR
64 #endif
65
66 includes:               Stg.h
67 hugs-options:
68 cc-options:
69
70 ld-options:
71 #ifdef LEADING_UNDERSCORE
72            "-Wl,-u,_ghczmprim_GHCziTypes_Izh_static_info"
73          , "-Wl,-u,_ghczmprim_GHCziTypes_Czh_static_info"
74          , "-Wl,-u,_ghczmprim_GHCziTypes_Fzh_static_info"
75          , "-Wl,-u,_ghczmprim_GHCziTypes_Dzh_static_info"
76          , "-Wl,-u,_base_GHCziPtr_Ptr_static_info"
77          , "-Wl,-u,_ghczmprim_GHCziTypes_Wzh_static_info"
78          , "-Wl,-u,_base_GHCziInt_I8zh_static_info"
79          , "-Wl,-u,_base_GHCziInt_I16zh_static_info"
80          , "-Wl,-u,_base_GHCziInt_I32zh_static_info"
81          , "-Wl,-u,_base_GHCziInt_I64zh_static_info"
82          , "-Wl,-u,_base_GHCziWord_W8zh_static_info"
83          , "-Wl,-u,_base_GHCziWord_W16zh_static_info"
84          , "-Wl,-u,_base_GHCziWord_W32zh_static_info"
85          , "-Wl,-u,_base_GHCziWord_W64zh_static_info"
86          , "-Wl,-u,_base_GHCziStable_StablePtr_static_info"
87          , "-Wl,-u,_ghczmprim_GHCziTypes_Izh_con_info"
88          , "-Wl,-u,_ghczmprim_GHCziTypes_Czh_con_info"
89          , "-Wl,-u,_ghczmprim_GHCziTypes_Fzh_con_info"
90          , "-Wl,-u,_ghczmprim_GHCziTypes_Dzh_con_info"
91          , "-Wl,-u,_base_GHCziPtr_Ptr_con_info"
92          , "-Wl,-u,_base_GHCziPtr_FunPtr_con_info"
93          , "-Wl,-u,_base_GHCziStable_StablePtr_con_info"
94          , "-Wl,-u,_ghczmprim_GHCziTypes_False_closure"
95          , "-Wl,-u,_ghczmprim_GHCziTypes_True_closure"
96          , "-Wl,-u,_base_GHCziPack_unpackCString_closure"
97          , "-Wl,-u,_base_GHCziIOziException_stackOverflow_closure"
98          , "-Wl,-u,_base_GHCziIOziException_heapOverflow_closure"
99          , "-Wl,-u,_base_ControlziExceptionziBase_nonTermination_closure"
100          , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
101          , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
102          , "-Wl,-u,_base_GHCziIOziException_allocationLimitExceeded_closure"
103          , "-Wl,-u,_base_ControlziExceptionziBase_nestedAtomically_closure"
104          , "-Wl,-u,_base_GHCziEventziThread_blockedOnBadFD_closure"
105          , "-Wl,-u,_base_GHCziWeak_runFinalizzerBatch_closure"
106          , "-Wl,-u,_base_GHCziTopHandler_flushStdHandles_closure"
107          , "-Wl,-u,_base_GHCziTopHandler_runIO_closure"
108          , "-Wl,-u,_base_GHCziTopHandler_runNonIO_closure"
109          , "-Wl,-u,_base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
110          , "-Wl,-u,_base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
111          , "-Wl,-u,_base_GHCziConcziSync_runSparks_closure"
112          , "-Wl,-u,_base_GHCziConcziSignal_runHandlersPtr_closure"
113 #else
114            "-Wl,-u,ghczmprim_GHCziTypes_Izh_static_info"
115          , "-Wl,-u,ghczmprim_GHCziTypes_Czh_static_info"
116          , "-Wl,-u,ghczmprim_GHCziTypes_Fzh_static_info"
117          , "-Wl,-u,ghczmprim_GHCziTypes_Dzh_static_info"
118          , "-Wl,-u,base_GHCziPtr_Ptr_static_info"
119          , "-Wl,-u,ghczmprim_GHCziTypes_Wzh_static_info"
120          , "-Wl,-u,base_GHCziInt_I8zh_static_info"
121          , "-Wl,-u,base_GHCziInt_I16zh_static_info"
122          , "-Wl,-u,base_GHCziInt_I32zh_static_info"
123          , "-Wl,-u,base_GHCziInt_I64zh_static_info"
124          , "-Wl,-u,base_GHCziWord_W8zh_static_info"
125          , "-Wl,-u,base_GHCziWord_W16zh_static_info"
126          , "-Wl,-u,base_GHCziWord_W32zh_static_info"
127          , "-Wl,-u,base_GHCziWord_W64zh_static_info"
128          , "-Wl,-u,base_GHCziStable_StablePtr_static_info"
129          , "-Wl,-u,ghczmprim_GHCziTypes_Izh_con_info"
130          , "-Wl,-u,ghczmprim_GHCziTypes_Czh_con_info"
131          , "-Wl,-u,ghczmprim_GHCziTypes_Fzh_con_info"
132          , "-Wl,-u,ghczmprim_GHCziTypes_Dzh_con_info"
133          , "-Wl,-u,base_GHCziPtr_Ptr_con_info"
134          , "-Wl,-u,base_GHCziPtr_FunPtr_con_info"
135          , "-Wl,-u,base_GHCziStable_StablePtr_con_info"
136          , "-Wl,-u,ghczmprim_GHCziTypes_False_closure"
137          , "-Wl,-u,ghczmprim_GHCziTypes_True_closure"
138          , "-Wl,-u,base_GHCziPack_unpackCString_closure"
139          , "-Wl,-u,base_GHCziIOziException_stackOverflow_closure"
140          , "-Wl,-u,base_GHCziIOziException_heapOverflow_closure"
141          , "-Wl,-u,base_ControlziExceptionziBase_nonTermination_closure"
142          , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
143          , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
144          , "-Wl,-u,base_GHCziIOziException_allocationLimitExceeded_closure"
145          , "-Wl,-u,base_ControlziExceptionziBase_nestedAtomically_closure"
146          , "-Wl,-u,base_GHCziEventziThread_blockedOnBadFD_closure"
147          , "-Wl,-u,base_GHCziWeak_runFinalizzerBatch_closure"
148          , "-Wl,-u,base_GHCziTopHandler_flushStdHandles_closure"
149          , "-Wl,-u,base_GHCziTopHandler_runIO_closure"
150          , "-Wl,-u,base_GHCziTopHandler_runNonIO_closure"
151          , "-Wl,-u,base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
152          , "-Wl,-u,base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
153          , "-Wl,-u,base_GHCziConcziSync_runSparks_closure"
154          , "-Wl,-u,base_GHCziConcziSignal_runHandlersPtr_closure"
155 #endif
156
157 /*  Pick up static libraries in preference over dynamic if in earlier search
158  *  path.  This is important to use the static gmp in preference on Mac OS.
159  *  The used option is specific to the Darwin linker.
160  */
161 #ifdef darwin_HOST_OS
162          , "-Wl,-search_paths_first"
163 #endif
164
165 #if defined(darwin_HOST_OS) && !defined(x86_64_HOST_ARCH)
166          , "-read_only_relocs", "warning"
167 #endif
168
169 framework-dirs:
170
171 haddock-interfaces:
172 haddock-html:
173