Fix linking with binutils 2.22 or later on FreeBSD 9.1, where one should
[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 license:        BSD3
10 maintainer:     glasgow-haskell-users@haskell.org
11 exposed:        True
12
13 exposed-modules:
14 hidden-modules:
15
16 import-dirs:
17
18 #ifdef INSTALLING
19 library-dirs:           LIB_DIR"/rts-1.0" PAPI_LIB_DIR
20 #else /* !INSTALLING */
21 library-dirs:           TOP"/rts/dist/build" PAPI_LIB_DIR
22 #endif
23
24 hs-libraries:   "HSrts" FFI_LIB
25
26 extra-libraries:
27 #ifdef HAVE_LIBM
28                                 "m"             /* for ldexp() */
29 #endif
30 #ifdef HAVE_LIBRT
31                               , "rt"
32 #endif
33 #ifdef HAVE_LIBDL
34                               , "dl"
35 #endif
36 #ifdef HAVE_LIBFFI
37                               , "ffi"
38 #endif
39 #ifdef mingw32_HOST_OS
40                               ,"wsock32"    /* for the linker */
41                               ,"gdi32"      /* for the linker */
42                               ,"winmm"      /* for the linker */
43 #endif
44 #ifdef freebsd_HOST_OS
45                               , "pthread" /* for pthread_getthreadid_np() */
46 #endif
47 #if defined(DEBUG) && defined(HAVE_LIBBFD)
48                               ,"bfd", "iberty"  /* for debugging */
49 #endif
50 #ifdef HAVE_LIBMINGWEX
51 # ifndef INSTALLING                             /* Bundled Mingw is behind */
52                               ,"mingwex"
53 # endif
54 #endif
55 #if USE_PAPI
56                              , "papi"
57 #endif
58
59 #ifdef INSTALLING
60 include-dirs:           INCLUDE_DIR PAPI_INCLUDE_DIR
61 #else /* !INSTALLING */
62 include-dirs:           TOP"/rts/dist/build" TOP"/includes" TOP"/includes/dist-derivedconstants/header"
63 #endif
64
65 includes:               Stg.h
66 hugs-options:
67 cc-options:
68
69 ld-options:
70 #ifdef LEADING_UNDERSCORE
71            "-u", "_ghczmprim_GHCziTypes_Izh_static_info"
72          , "-u", "_ghczmprim_GHCziTypes_Czh_static_info"
73          , "-u", "_ghczmprim_GHCziTypes_Fzh_static_info"
74          , "-u", "_ghczmprim_GHCziTypes_Dzh_static_info"
75          , "-u", "_base_GHCziPtr_Ptr_static_info"
76          , "-u", "_ghczmprim_GHCziTypes_Wzh_static_info"
77          , "-u", "_base_GHCziInt_I8zh_static_info"
78          , "-u", "_base_GHCziInt_I16zh_static_info"
79          , "-u", "_base_GHCziInt_I32zh_static_info"
80          , "-u", "_base_GHCziInt_I64zh_static_info"
81          , "-u", "_base_GHCziWord_W8zh_static_info"
82          , "-u", "_base_GHCziWord_W16zh_static_info"
83          , "-u", "_base_GHCziWord_W32zh_static_info"
84          , "-u", "_base_GHCziWord_W64zh_static_info"
85          , "-u", "_base_GHCziStable_StablePtr_static_info"
86          , "-u", "_ghczmprim_GHCziTypes_Izh_con_info"
87          , "-u", "_ghczmprim_GHCziTypes_Czh_con_info"
88          , "-u", "_ghczmprim_GHCziTypes_Fzh_con_info"
89          , "-u", "_ghczmprim_GHCziTypes_Dzh_con_info"
90          , "-u", "_base_GHCziPtr_Ptr_con_info"
91          , "-u", "_base_GHCziPtr_FunPtr_con_info"
92          , "-u", "_base_GHCziStable_StablePtr_con_info"
93          , "-u", "_ghczmprim_GHCziTypes_False_closure"
94          , "-u", "_ghczmprim_GHCziTypes_True_closure"
95          , "-u", "_base_GHCziPack_unpackCString_closure"
96          , "-u", "_base_GHCziIOziException_stackOverflow_closure"
97          , "-u", "_base_GHCziIOziException_heapOverflow_closure"
98          , "-u", "_base_ControlziExceptionziBase_nonTermination_closure"
99          , "-u", "_base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
100          , "-u", "_base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
101          , "-u", "_base_ControlziExceptionziBase_nestedAtomically_closure"
102          , "-u", "_base_GHCziWeak_runFinalizzerBatch_closure"
103          , "-u", "_base_GHCziTopHandler_flushStdHandles_closure"
104          , "-u", "_base_GHCziTopHandler_runIO_closure"
105          , "-u", "_base_GHCziTopHandler_runNonIO_closure"
106          , "-u", "_base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
107          , "-u", "_base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
108          , "-u", "_base_GHCziConcziSync_runSparks_closure"
109          , "-u", "_base_GHCziConcziSignal_runHandlers_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", "ghczmprim_GHCziTypes_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_GHCziTypes_False_closure"
134          , "-u", "ghczmprim_GHCziTypes_True_closure"
135          , "-u", "base_GHCziPack_unpackCString_closure"
136          , "-u", "base_GHCziIOziException_stackOverflow_closure"
137          , "-u", "base_GHCziIOziException_heapOverflow_closure"
138          , "-u", "base_ControlziExceptionziBase_nonTermination_closure"
139          , "-u", "base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
140          , "-u", "base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
141          , "-u", "base_ControlziExceptionziBase_nestedAtomically_closure"
142          , "-u", "base_GHCziWeak_runFinalizzerBatch_closure"
143          , "-u", "base_GHCziTopHandler_flushStdHandles_closure"
144          , "-u", "base_GHCziTopHandler_runIO_closure"
145          , "-u", "base_GHCziTopHandler_runNonIO_closure"
146          , "-u", "base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
147          , "-u", "base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
148          , "-u", "base_GHCziConcziSync_runSparks_closure"
149          , "-u", "base_GHCziConcziSignal_runHandlers_closure"
150 #endif
151
152 /*  Pick up static libraries in preference over dynamic if in earlier search
153  *  path.  This is important to use the static gmp in preference on Mac OS.
154  *  The used option is specific to the Darwin linker.
155  */
156 #ifdef darwin_HOST_OS
157          , "-Wl,-search_paths_first"
158 #endif
159
160 #if defined(darwin_HOST_OS) && !defined(x86_64_HOST_ARCH)
161          , "-read_only_relocs", "warning"
162 #endif
163
164 framework-dirs:
165
166 haddock-interfaces:
167 haddock-html:
168