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

3
#include "ghcconfig.h"
Simon Marlow's avatar
Simon Marlow committed
4
#include "rts/Config.h"
5
#include "MachDeps.h"
6

7 8
name:           rts
version:        1.0
9
id:             rts
10
key:            rts
11 12 13
license:        BSD3
maintainer:     glasgow-haskell-users@haskell.org
exposed:        True
14 15 16 17 18

exposed-modules:
hidden-modules:

import-dirs:
19 20

#ifdef INSTALLING
Ben Gamari's avatar
Ben Gamari committed
21
library-dirs:           LIB_DIR"/rts" FFI_LIB_DIR
22
#else /* !INSTALLING */
Ben Gamari's avatar
Ben Gamari committed
23
library-dirs:           TOP"/rts/dist/build" FFI_LIB_DIR
24 25
#endif

26
hs-libraries:   "HSrts" FFI_LIB
27

28 29
extra-libraries:
#ifdef HAVE_LIBM
30
                                "m"             /* for ldexp() */
31
#endif
32
#ifdef HAVE_LIBRT
33
                              , "rt"
34
#endif
35
#ifdef HAVE_LIBDL
36
                              , "dl"
37
#endif
38 39 40
#ifdef HAVE_LIBFFI
                              , "ffi"
#endif
41
#ifdef mingw32_HOST_OS
42 43 44
                              ,"wsock32"    /* for the linker */
                              ,"gdi32"      /* for the linker */
                              ,"winmm"      /* for the linker */
45
#endif
46
                              , "pthread"   /* for pthread_getthreadid_np, pthread_create, etc. */
47
#if defined(DEBUG) && defined(HAVE_LIBBFD)
48
                              ,"bfd", "iberty"  /* for debugging */
49
#endif
50 51 52 53
#ifdef HAVE_LIBMINGWEX
# ifndef INSTALLING                             /* Bundled Mingw is behind */
                              ,"mingwex"
# endif
54
#endif
55 56 57 58
#ifdef USE_LIBDW
                             , "elf"
                             , "dw"             /* for backtraces */
#endif
59 60

#ifdef INSTALLING
Ben Gamari's avatar
Ben Gamari committed
61
include-dirs:           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
ross's avatar
ross committed
67 68
hugs-options:
cc-options:
69

70
ld-options:
71
#ifdef LEADING_UNDERSCORE
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
           "-Wl,-u,_ghczmprim_GHCziTypes_Izh_static_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Czh_static_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Fzh_static_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Dzh_static_info"
         , "-Wl,-u,_base_GHCziPtr_Ptr_static_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Wzh_static_info"
         , "-Wl,-u,_base_GHCziInt_I8zh_static_info"
         , "-Wl,-u,_base_GHCziInt_I16zh_static_info"
         , "-Wl,-u,_base_GHCziInt_I32zh_static_info"
         , "-Wl,-u,_base_GHCziInt_I64zh_static_info"
         , "-Wl,-u,_base_GHCziWord_W8zh_static_info"
         , "-Wl,-u,_base_GHCziWord_W16zh_static_info"
         , "-Wl,-u,_base_GHCziWord_W32zh_static_info"
         , "-Wl,-u,_base_GHCziWord_W64zh_static_info"
         , "-Wl,-u,_base_GHCziStable_StablePtr_static_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Izh_con_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Czh_con_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Fzh_con_info"
         , "-Wl,-u,_ghczmprim_GHCziTypes_Dzh_con_info"
         , "-Wl,-u,_base_GHCziPtr_Ptr_con_info"
         , "-Wl,-u,_base_GHCziPtr_FunPtr_con_info"
         , "-Wl,-u,_base_GHCziStable_StablePtr_con_info"
94 95 96 97 98 99 100 101
         , "-Wl,-u,_ghczmprim_GHCziTypes_False_closure"
         , "-Wl,-u,_ghczmprim_GHCziTypes_True_closure"
         , "-Wl,-u,_base_GHCziPack_unpackCString_closure"
         , "-Wl,-u,_base_GHCziIOziException_stackOverflow_closure"
         , "-Wl,-u,_base_GHCziIOziException_heapOverflow_closure"
         , "-Wl,-u,_base_ControlziExceptionziBase_nonTermination_closure"
         , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
         , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
102
         , "-Wl,-u,_base_GHCziIOziException_allocationLimitExceeded_closure"
103 104 105 106 107 108 109 110 111
         , "-Wl,-u,_base_ControlziExceptionziBase_nestedAtomically_closure"
         , "-Wl,-u,_base_GHCziEventziThread_blockedOnBadFD_closure"
         , "-Wl,-u,_base_GHCziWeak_runFinalizzerBatch_closure"
         , "-Wl,-u,_base_GHCziTopHandler_flushStdHandles_closure"
         , "-Wl,-u,_base_GHCziTopHandler_runIO_closure"
         , "-Wl,-u,_base_GHCziTopHandler_runNonIO_closure"
         , "-Wl,-u,_base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
         , "-Wl,-u,_base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
         , "-Wl,-u,_base_GHCziConcziSync_runSparks_closure"
Marios Titas's avatar
Marios Titas committed
112
         , "-Wl,-u,_base_GHCziConcziSignal_runHandlersPtr_closure"
113
#else
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
           "-Wl,-u,ghczmprim_GHCziTypes_Izh_static_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Czh_static_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Fzh_static_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Dzh_static_info"
         , "-Wl,-u,base_GHCziPtr_Ptr_static_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Wzh_static_info"
         , "-Wl,-u,base_GHCziInt_I8zh_static_info"
         , "-Wl,-u,base_GHCziInt_I16zh_static_info"
         , "-Wl,-u,base_GHCziInt_I32zh_static_info"
         , "-Wl,-u,base_GHCziInt_I64zh_static_info"
         , "-Wl,-u,base_GHCziWord_W8zh_static_info"
         , "-Wl,-u,base_GHCziWord_W16zh_static_info"
         , "-Wl,-u,base_GHCziWord_W32zh_static_info"
         , "-Wl,-u,base_GHCziWord_W64zh_static_info"
         , "-Wl,-u,base_GHCziStable_StablePtr_static_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Izh_con_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Czh_con_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Fzh_con_info"
         , "-Wl,-u,ghczmprim_GHCziTypes_Dzh_con_info"
         , "-Wl,-u,base_GHCziPtr_Ptr_con_info"
         , "-Wl,-u,base_GHCziPtr_FunPtr_con_info"
         , "-Wl,-u,base_GHCziStable_StablePtr_con_info"
136 137 138 139 140 141 142 143
         , "-Wl,-u,ghczmprim_GHCziTypes_False_closure"
         , "-Wl,-u,ghczmprim_GHCziTypes_True_closure"
         , "-Wl,-u,base_GHCziPack_unpackCString_closure"
         , "-Wl,-u,base_GHCziIOziException_stackOverflow_closure"
         , "-Wl,-u,base_GHCziIOziException_heapOverflow_closure"
         , "-Wl,-u,base_ControlziExceptionziBase_nonTermination_closure"
         , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
         , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
144
         , "-Wl,-u,base_GHCziIOziException_allocationLimitExceeded_closure"
145 146 147 148 149 150 151 152 153
         , "-Wl,-u,base_ControlziExceptionziBase_nestedAtomically_closure"
         , "-Wl,-u,base_GHCziEventziThread_blockedOnBadFD_closure"
         , "-Wl,-u,base_GHCziWeak_runFinalizzerBatch_closure"
         , "-Wl,-u,base_GHCziTopHandler_flushStdHandles_closure"
         , "-Wl,-u,base_GHCziTopHandler_runIO_closure"
         , "-Wl,-u,base_GHCziTopHandler_runNonIO_closure"
         , "-Wl,-u,base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
         , "-Wl,-u,base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
         , "-Wl,-u,base_GHCziConcziSync_runSparks_closure"
Marios Titas's avatar
Marios Titas committed
154
         , "-Wl,-u,base_GHCziConcziSignal_runHandlersPtr_closure"
155 156
#endif

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.
 */
Ian Lynagh's avatar
Ian Lynagh committed
161
#ifdef darwin_HOST_OS
162
         , "-Wl,-search_paths_first"
163 164
#endif

165
#if defined(darwin_HOST_OS) && !defined(x86_64_HOST_ARCH)
166 167 168
         , "-read_only_relocs", "warning"
#endif

169 170 171 172 173
framework-dirs:

haddock-interfaces:
haddock-html: