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

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

Ian Lynagh's avatar
Ian Lynagh committed
6
name:		rts
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 PAPI_LIB_DIR
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:		TOP"/rts/dist/build" PAPI_LIB_DIR
25 26
#endif

27 28
hs-libraries:   "HSrts"

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

#ifdef INSTALLING
52
include-dirs:		INCLUDE_DIR PAPI_INCLUDE_DIR
53
#else /* !INSTALLING */
Ian Lynagh's avatar
Ian Lynagh committed
54
include-dirs:		TOP"/includes"
55

56
includes:		Stg.h
57
depends:	 	ffi-1.0
ross's avatar
ross committed
58 59
hugs-options:
cc-options:
60

61
ld-options:
62
#ifdef LEADING_UNDERSCORE
63
           "-u", "_ghczmprim_GHCziTypes_Izh_static_info"
64
         , "-u", "_ghczmprim_GHCziTypes_Czh_static_info"
65 66
         , "-u", "_ghczmprim_GHCziTypes_Fzh_static_info"
         , "-u", "_ghczmprim_GHCziTypes_Dzh_static_info"
67 68 69 70 71 72 73 74 75 76 77
         , "-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"
78
         , "-u", "_ghczmprim_GHCziTypes_Izh_con_info"
79
         , "-u", "_ghczmprim_GHCziTypes_Czh_con_info"
80 81
         , "-u", "_ghczmprim_GHCziTypes_Fzh_con_info"
         , "-u", "_ghczmprim_GHCziTypes_Dzh_con_info"
82 83 84
         , "-u", "_base_GHCziPtr_Ptr_con_info"
         , "-u", "_base_GHCziPtr_FunPtr_con_info"
         , "-u", "_base_GHCziStable_StablePtr_con_info"
Ian Lynagh's avatar
Ian Lynagh committed
85 86
         , "-u", "_ghczmprim_GHCziBool_False_closure"
         , "-u", "_ghczmprim_GHCziBool_True_closure"
87
         , "-u", "_base_GHCziPack_unpackCString_closure"
88 89
         , "-u", "_base_GHCziIOziException_stackOverflow_closure"
         , "-u", "_base_GHCziIOziException_heapOverflow_closure"
90
         , "-u", "_base_ControlziExceptionziBase_nonTermination_closure"
91 92
         , "-u", "_base_GHCziIOziException_blockedOnDeadMVar_closure"
         , "-u", "_base_GHCziIOziException_blockedIndefinitely_closure"
93
         , "-u", "_base_ControlziExceptionziBase_nestedAtomically_closure"
94
         , "-u", "_base_GHCziWeak_runFinalizzerBatch_closure"
95 96
         , "-u", "_base_GHCziTopHandler_runIO_closure"
         , "-u", "_base_GHCziTopHandler_runNonIO_closure"
97 98
	 , "-u", "_base_GHCziConc_ensureIOManagerIsRunning_closure"
	 , "-u", "_base_GHCziConc_runSparks_closure"
99
	 , "-u", "_base_GHCziConc_runHandlers_closure"
100
#else
101
           "-u", "ghczmprim_GHCziTypes_Izh_static_info"
102
         , "-u", "ghczmprim_GHCziTypes_Czh_static_info"
103 104
         , "-u", "ghczmprim_GHCziTypes_Fzh_static_info"
         , "-u", "ghczmprim_GHCziTypes_Dzh_static_info"
105 106 107 108 109 110 111 112 113 114 115
         , "-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"
116
         , "-u", "ghczmprim_GHCziTypes_Izh_con_info"
117
         , "-u", "ghczmprim_GHCziTypes_Czh_con_info"
118 119
         , "-u", "ghczmprim_GHCziTypes_Fzh_con_info"
         , "-u", "ghczmprim_GHCziTypes_Dzh_con_info"
120 121 122
         , "-u", "base_GHCziPtr_Ptr_con_info"
         , "-u", "base_GHCziPtr_FunPtr_con_info"
         , "-u", "base_GHCziStable_StablePtr_con_info"
Ian Lynagh's avatar
Ian Lynagh committed
123 124
         , "-u", "ghczmprim_GHCziBool_False_closure"
         , "-u", "ghczmprim_GHCziBool_True_closure"
125
         , "-u", "base_GHCziPack_unpackCString_closure"
126 127
         , "-u", "base_GHCziIOziException_stackOverflow_closure"
         , "-u", "base_GHCziIOziException_heapOverflow_closure"
128
         , "-u", "base_ControlziExceptionziBase_nonTermination_closure"
129 130
         , "-u", "base_GHCziIOziException_blockedOnDeadMVar_closure"
         , "-u", "base_GHCziIOziException_blockedIndefinitely_closure"
131
         , "-u", "base_ControlziExceptionziBase_nestedAtomically_closure"
132
         , "-u", "base_GHCziWeak_runFinalizzerBatch_closure"
133 134
         , "-u", "base_GHCziTopHandler_runIO_closure"
         , "-u", "base_GHCziTopHandler_runNonIO_closure"
135
	 , "-u", "base_GHCziConc_ensureIOManagerIsRunning_closure"
136
	 , "-u", "base_GHCziConc_runSparks_closure"
137
	 , "-u", "base_GHCziConc_runHandlers_closure"
138 139
#endif

140 141 142 143 144 145 146 147
/*  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

148 149 150 151
#ifdef darwin_HOST_OS
         , "-read_only_relocs", "warning"
#endif

152 153 154 155 156
framework-dirs:

haddock-interfaces:
haddock-html: