/* The RTS is just another package! */

#include "ghcconfig.h"
#include "rts/Config.h"

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

exposed-modules:
hidden-modules:

import-dirs:

#ifdef INSTALLING
library-dirs:		LIB_DIR PAPI_LIB_DIR
#else /* !INSTALLING */
library-dirs:		TOP"/rts/dist/build" PAPI_LIB_DIR
#endif

hs-libraries:   "HSrts"

extra-libraries:
#ifdef HAVE_LIBM
                		"m"		/* for ldexp() */
#endif
#ifdef HAVE_LIBRT
			      , "rt"
#endif
#ifdef HAVE_LIBDL
			      , "dl"
#endif
#ifdef mingw32_HOST_OS
			      ,"wsock32"	/* for the linker */
#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 PAPI_INCLUDE_DIR
#else /* !INSTALLING */
include-dirs:		TOP"/includes"
#endif

includes:		Stg.h
depends:	 	builtin_ffi
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_GHCziIOziException_stackOverflow_closure"
         , "-u", "_base_GHCziIOziException_heapOverflow_closure"
         , "-u", "_base_ControlziExceptionziBase_nonTermination_closure"
         , "-u", "_base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
         , "-u", "_base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
         , "-u", "_base_ControlziExceptionziBase_nestedAtomically_closure"
         , "-u", "_base_GHCziWeak_runFinalizzerBatch_closure"
         , "-u", "_base_GHCziTopHandler_runIO_closure"
         , "-u", "_base_GHCziTopHandler_runNonIO_closure"
	 , "-u", "_base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
	 , "-u", "_base_GHCziConcziSync_runSparks_closure"
	 , "-u", "_base_GHCziConcziSignal_runHandlers_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_GHCziIOziException_stackOverflow_closure"
         , "-u", "base_GHCziIOziException_heapOverflow_closure"
         , "-u", "base_ControlziExceptionziBase_nonTermination_closure"
         , "-u", "base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
         , "-u", "base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
         , "-u", "base_ControlziExceptionziBase_nestedAtomically_closure"
         , "-u", "base_GHCziWeak_runFinalizzerBatch_closure"
         , "-u", "base_GHCziTopHandler_runIO_closure"
         , "-u", "base_GHCziTopHandler_runNonIO_closure"
	 , "-u", "base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
	 , "-u", "base_GHCziConcziSync_runSparks_closure"
	 , "-u", "base_GHCziConcziSignal_runHandlers_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_HOST_OS
	 , "-Wl,-search_paths_first"
#endif

#ifdef darwin_HOST_OS
         , "-read_only_relocs", "warning"
#endif

framework-dirs:

haddock-interfaces:
haddock-html:

