summaryrefslogtreecommitdiff
path: root/rts/package.conf.in
blob: 1b274c9d694509381a6188b3b8634344881f3d09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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
/* The RTS is just another package! */

#include "ghcconfig.h"
#include "RtsConfig.h"

name:		PACKAGE
version:	1.0
license:	BSD3
maintainer:	glasgow-haskell-users@haskell.org
exposed:	True

exposed-modules:
hidden-modules:

import-dirs:

#ifdef INSTALLING
library-dirs:		LIB_DIR GMP_LIB_DIRS PAPI_LIB_DIR
# ifdef mingw32_HOST_OS
			, LIB_DIR"/gcc-lib"
			/* force the dist-provided gcc-lib/ into scope. */
# endif
#else /* !INSTALLING */
library-dirs:		FPTOOLS_TOP_ABS"/rts" GMP_LIB_DIRS PAPI_LIB_DIR
# if !defined(HAVE_LIBGMP) && !defined(HAVE_FRAMEWORK_GMP)
			, FPTOOLS_TOP_ABS"/gmp"
# endif
                        , FPTOOLS_TOP_ABS"/libffi"
#endif

hs-libraries:   "HSrts"

extra-libraries:		"m"		/* for ldexp() */
			      , "ffi"
#ifndef HAVE_FRAMEWORK_GMP
			      , "gmp"
#ifdef HAVE_LIBDL
			      , "dl"
#endif
#endif
#ifdef HAVE_LIBRT
			      , "rt"
#endif
#ifdef mingw32_HOST_OS
			      ,"wsock32"	/* for the linker */
#endif
#ifdef WANT_DOTNET_SUPPORT
			      , "oleaut32", "ole32", "uuid"
#endif
#if defined(DEBUG) && defined(HAVE_LIBBFD)
			      ,"bfd", "iberty"	/* for debugging */
#endif
#ifdef HAVE_LIBMINGWEX
# ifndef INSTALLING                             /* Bundled Mingw is behind */
                              ,"mingwex"
# endif
#endif
#if USE_PAPI
			     , "papi"
#endif

#ifdef INSTALLING
include-dirs:		INCLUDE_DIR GMP_INCLUDE_DIRS PAPI_INCLUDE_DIR
#else /* !INSTALLING */
include-dirs:		FPTOOLS_TOP_ABS"/includes"
             		FPTOOLS_TOP_ABS"/rts"
             		FPTOOLS_TOP_ABS"/gmp/gmpbuild"
             		GMP_INCLUDE_DIRS
#endif

includes:		Stg.h
depends:	 	
hugs-options:
cc-options:

ld-options:
#ifdef LEADING_UNDERSCORE
           "-u", "_ghczmprim_GHCziTypes_Izh_static_info"
         , "-u", "_ghczmprim_GHCziTypes_Czh_static_info"
         , "-u", "_ghczmprim_GHCziTypes_Fzh_static_info"
         , "-u", "_ghczmprim_GHCziTypes_Dzh_static_info"
         , "-u", "_base_GHCziPtr_Ptr_static_info"
         , "-u", "_base_GHCziWord_Wzh_static_info"
         , "-u", "_base_GHCziInt_I8zh_static_info"
         , "-u", "_base_GHCziInt_I16zh_static_info"
         , "-u", "_base_GHCziInt_I32zh_static_info"
         , "-u", "_base_GHCziInt_I64zh_static_info"
         , "-u", "_base_GHCziWord_W8zh_static_info"
         , "-u", "_base_GHCziWord_W16zh_static_info"
         , "-u", "_base_GHCziWord_W32zh_static_info"
         , "-u", "_base_GHCziWord_W64zh_static_info"
         , "-u", "_base_GHCziStable_StablePtr_static_info"
         , "-u", "_ghczmprim_GHCziTypes_Izh_con_info"
         , "-u", "_ghczmprim_GHCziTypes_Czh_con_info"
         , "-u", "_ghczmprim_GHCziTypes_Fzh_con_info"
         , "-u", "_ghczmprim_GHCziTypes_Dzh_con_info"
         , "-u", "_base_GHCziPtr_Ptr_con_info"
         , "-u", "_base_GHCziPtr_FunPtr_con_info"
         , "-u", "_base_GHCziStable_StablePtr_con_info"
         , "-u", "_ghczmprim_GHCziBool_False_closure"
         , "-u", "_ghczmprim_GHCziBool_True_closure"
         , "-u", "_base_GHCziPack_unpackCString_closure"
         , "-u", "_base_GHCziIOBase_stackOverflow_closure"
         , "-u", "_base_GHCziIOBase_heapOverflow_closure"
         , "-u", "_base_ControlziExceptionziBase_nonTermination_closure"
         , "-u", "_base_GHCziIOBase_blockedOnDeadMVar_closure"
         , "-u", "_base_GHCziIOBase_blockedIndefinitely_closure"
         , "-u", "_base_ControlziExceptionziBase_nestedAtomically_closure"
         , "-u", "_base_GHCziWeak_runFinalizzerBatch_closure"
         , "-u", "_base_GHCziTopHandler_runIO_closure"
         , "-u", "_base_GHCziTopHandler_runNonIO_closure"
#else
           "-u", "ghczmprim_GHCziTypes_Izh_static_info"
         , "-u", "ghczmprim_GHCziTypes_Czh_static_info"
         , "-u", "ghczmprim_GHCziTypes_Fzh_static_info"
         , "-u", "ghczmprim_GHCziTypes_Dzh_static_info"
         , "-u", "base_GHCziPtr_Ptr_static_info"
         , "-u", "base_GHCziWord_Wzh_static_info"
         , "-u", "base_GHCziInt_I8zh_static_info"
         , "-u", "base_GHCziInt_I16zh_static_info"
         , "-u", "base_GHCziInt_I32zh_static_info"
         , "-u", "base_GHCziInt_I64zh_static_info"
         , "-u", "base_GHCziWord_W8zh_static_info"
         , "-u", "base_GHCziWord_W16zh_static_info"
         , "-u", "base_GHCziWord_W32zh_static_info"
         , "-u", "base_GHCziWord_W64zh_static_info"
         , "-u", "base_GHCziStable_StablePtr_static_info"
         , "-u", "ghczmprim_GHCziTypes_Izh_con_info"
         , "-u", "ghczmprim_GHCziTypes_Czh_con_info"
         , "-u", "ghczmprim_GHCziTypes_Fzh_con_info"
         , "-u", "ghczmprim_GHCziTypes_Dzh_con_info"
         , "-u", "base_GHCziPtr_Ptr_con_info"
         , "-u", "base_GHCziPtr_FunPtr_con_info"
         , "-u", "base_GHCziStable_StablePtr_con_info"
         , "-u", "ghczmprim_GHCziBool_False_closure"
         , "-u", "ghczmprim_GHCziBool_True_closure"
         , "-u", "base_GHCziPack_unpackCString_closure"
         , "-u", "base_GHCziIOBase_stackOverflow_closure"
         , "-u", "base_GHCziIOBase_heapOverflow_closure"
         , "-u", "base_ControlziExceptionziBase_nonTermination_closure"
         , "-u", "base_GHCziIOBase_blockedOnDeadMVar_closure"
         , "-u", "base_GHCziIOBase_blockedIndefinitely_closure"
         , "-u", "base_ControlziExceptionziBase_nestedAtomically_closure"
         , "-u", "base_GHCziWeak_runFinalizzerBatch_closure"
         , "-u", "base_GHCziTopHandler_runIO_closure"
         , "-u", "base_GHCziTopHandler_runNonIO_closure"
#endif

#ifdef LEADING_UNDERSCORE
	 , "-u", "_base_GHCziConc_ensureIOManagerIsRunning_closure"
#else
	 , "-u", "base_GHCziConc_ensureIOManagerIsRunning_closure"
#endif

/*  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.
 */
#ifdef darwin_BUILD_OS
	 , "-Wl,-search_paths_first"
#endif

framework-dirs:

#ifdef HAVE_FRAMEWORK_GMP
frameworks:	"GMP"
#else
frameworks:
#endif

haddock-interfaces:
haddock-html: