package.conf.in 5.52 KB
Newer Older
1
2
/* The RTS is just another package! */

3
4
#include "ghcconfig.h"
#include "RtsConfig.h"
5

6
name:		PACKAGE
7
8
9
10
11
12
13
14
15
version:	1.0
license:	BSD3
maintainer:	glasgow-haskell-users@haskell.org
exposed:	True

exposed-modules:
hidden-modules:

import-dirs:
16
17

#ifdef INSTALLING
18
library-dirs:		LIB_DIR GMP_LIB_DIRS
19
# ifdef mingw32_HOST_OS
20
			, LIB_DIR"/gcc-lib"
21
			/* force the dist-provided gcc-lib/ into scope. */
22
23
# endif
#else /* !INSTALLING */
24
library-dirs:		FPTOOLS_TOP_ABS"/rts" GMP_LIB_DIRS
25
# if !defined(HAVE_LIBGMP) && !defined(HAVE_FRAMEWORK_GMP)
26
			, FPTOOLS_TOP_ABS"/gmp"
27
28
29
# endif
#endif

30
31
hs-libraries:   "HSrts"

32
extra-libraries:		"m"		/* for ldexp() */
33
#ifndef HAVE_FRAMEWORK_GMP
34
35
36
37
38
			      , "gmp"
#ifdef HAVE_LIBDL
			      , "dl"
#endif
#endif
39
40
41
#ifdef HAVE_LIBRT
			      , "rt"
#endif
42
#ifdef mingw32_HOST_OS
43
44
			      ,"wsock32"	/* for the linker */
#endif
sof's avatar
sof committed
45
46
47
#ifdef WANT_DOTNET_SUPPORT
			      , "oleaut32", "ole32", "uuid"
#endif
48
#if defined(DEBUG) && defined(HAVE_LIBBFD)
49
50
			      ,"bfd", "iberty"	/* for debugging */
#endif
51
52
53
54
#ifdef HAVE_LIBMINGWEX
# ifndef INSTALLING                             /* Bundled Mingw is behind */
                              ,"mingwex"
# endif
55
#endif
mrchebas@gmail.com's avatar
mrchebas@gmail.com committed
56
57
58
#if USE_PAPI
			     , "papi"
#endif
59
60

#ifdef INSTALLING
61
include-dirs:		INCLUDE_DIR GMP_INCLUDE_DIRS
62
# ifdef mingw32_HOST_OS
63
			, INCLUDE_DIR"/mingw"
64
65
# endif
#else /* !INSTALLING */
66
include-dirs:		FPTOOLS_TOP_ABS"/includes"
67
68
             		FPTOOLS_TOP_ABS"/rts"
             		FPTOOLS_TOP_ABS"/gmp/gmpbuild"
69
70
#endif

71
72
includes:		Stg.h
depends:	 	
ross's avatar
ross committed
73
74
hugs-options:
cc-options:
75

76
ld-options:
77
#ifdef LEADING_UNDERSCORE
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
           "-u", "_base_GHCziBase_Izh_static_info"
         , "-u", "_base_GHCziBase_Czh_static_info"
         , "-u", "_base_GHCziFloat_Fzh_static_info"
         , "-u", "_base_GHCziFloat_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", "_base_GHCziBase_Izh_con_info"
         , "-u", "_base_GHCziBase_Czh_con_info"
         , "-u", "_base_GHCziFloat_Fzh_con_info"
         , "-u", "_base_GHCziFloat_Dzh_con_info"
         , "-u", "_base_GHCziPtr_Ptr_con_info"
         , "-u", "_base_GHCziPtr_FunPtr_con_info"
         , "-u", "_base_GHCziStable_StablePtr_con_info"
         , "-u", "_base_GHCziBase_False_closure"
         , "-u", "_base_GHCziBase_True_closure"
         , "-u", "_base_GHCziPack_unpackCString_closure"
         , "-u", "_base_GHCziIOBase_stackOverflow_closure"
         , "-u", "_base_GHCziIOBase_heapOverflow_closure"
         , "-u", "_base_GHCziIOBase_NonTermination_closure"
         , "-u", "_base_GHCziIOBase_BlockedOnDeadMVar_closure"
         , "-u", "_base_GHCziIOBase_BlockedIndefinitely_closure"
         , "-u", "_base_GHCziIOBase_Deadlock_closure"
         , "-u", "_base_GHCziIOBase_NestedAtomically_closure"
         , "-u", "_base_GHCziWeak_runFinalizzerBatch_closure"
111
#else
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
           "-u", "base_GHCziBase_Izh_static_info"
         , "-u", "base_GHCziBase_Czh_static_info"
         , "-u", "base_GHCziFloat_Fzh_static_info"
         , "-u", "base_GHCziFloat_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", "base_GHCziBase_Izh_con_info"
         , "-u", "base_GHCziBase_Czh_con_info"
         , "-u", "base_GHCziFloat_Fzh_con_info"
         , "-u", "base_GHCziFloat_Dzh_con_info"
         , "-u", "base_GHCziPtr_Ptr_con_info"
         , "-u", "base_GHCziPtr_FunPtr_con_info"
         , "-u", "base_GHCziStable_StablePtr_con_info"
         , "-u", "base_GHCziBase_False_closure"
         , "-u", "base_GHCziBase_True_closure"
         , "-u", "base_GHCziPack_unpackCString_closure"
         , "-u", "base_GHCziIOBase_stackOverflow_closure"
         , "-u", "base_GHCziIOBase_heapOverflow_closure"
         , "-u", "base_GHCziIOBase_NonTermination_closure"
         , "-u", "base_GHCziIOBase_BlockedOnDeadMVar_closure"
         , "-u", "base_GHCziIOBase_BlockedIndefinitely_closure"
         , "-u", "base_GHCziIOBase_Deadlock_closure"
         , "-u", "base_GHCziIOBase_NestedAtomically_closure"
         , "-u", "base_GHCziWeak_runFinalizzerBatch_closure"
145
#endif
146

147
#ifdef LEADING_UNDERSCORE
148
	 , "-u", "_base_GHCziConc_ensureIOManagerIsRunning_closure"
149
#else
150
	 , "-u", "base_GHCziConc_ensureIOManagerIsRunning_closure"
151
152
#endif

153
154
155
156
157
158
159
160
/*  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

161
162
framework-dirs:

163
164
#ifdef HAVE_FRAMEWORK_GMP
frameworks:	"GMP"
165
#else
ross's avatar
ross committed
166
frameworks:
167
#endif
168
169
170
171

haddock-interfaces:
haddock-html: