Revert "rts, base: Refactor stats.c to improve --machine-readable report"
[ghc.git] / rts / package.conf.in
index 17d579f..15b8ac2 100644 (file)
@@ -8,7 +8,7 @@ name:           rts
 version:        1.0
 id:             rts
 key:            rts
-license:        BSD3
+license:        BSD-3-Clause
 maintainer:     glasgow-haskell-users@haskell.org
 exposed:        True
 
@@ -17,7 +17,7 @@ hidden-modules:
 
 import-dirs:
 
-#ifdef INSTALLING
+#if defined(INSTALLING)
 library-dirs:           LIB_DIR"/rts" FFI_LIB_DIR
 #else /* !INSTALLING */
 library-dirs:           TOP"/rts/dist/build" FFI_LIB_DIR
@@ -26,31 +26,35 @@ library-dirs:           TOP"/rts/dist/build" FFI_LIB_DIR
 hs-libraries:   "HSrts" FFI_LIB
 
 extra-libraries:
-#ifdef HAVE_LIBM
+#if defined(HAVE_LIBM)
                                 "m"             /* for ldexp() */
 #endif
-#ifdef HAVE_LIBRT
+#if defined(HAVE_LIBRT)
                               , "rt"
 #endif
-#ifdef HAVE_LIBDL
+#if defined(HAVE_LIBDL)
                               , "dl"
 #endif
-#ifdef HAVE_LIBFFI
+#if defined(HAVE_LIBFFI)
                               , "ffi"
 #endif
 #if HAVE_LIBNUMA
                               , "numa"
 #endif
-#ifdef mingw32_HOST_OS
+#if defined(mingw32_HOST_OS)
                               ,"wsock32"    /* for the linker */
                               ,"gdi32"      /* for the linker */
                               ,"winmm"      /* for the linker */
+                              ,"dbghelp"    /* for crash dump */
+                              ,"psapi"      /* for process information.  */
 #endif
+#if NEED_PTHREAD_LIB
                               , "pthread"   /* for pthread_getthreadid_np, pthread_create, etc. */
+#endif
 #if defined(DEBUG) && defined(HAVE_LIBBFD)
                               ,"bfd", "iberty"  /* for debugging */
 #endif
-#ifdef HAVE_LIBMINGWEX
+#if defined(HAVE_LIBMINGWEX)
 # ifndef INSTALLING                             /* Bundled Mingw is behind */
                               ,"mingwex"
 # endif
@@ -60,7 +64,7 @@ extra-libraries:
                              , "dw"             /* for backtraces */
 #endif
 
-#ifdef INSTALLING
+#if defined(INSTALLING)
 include-dirs:           INCLUDE_DIR FFI_INCLUDE_DIR
 #else /* !INSTALLING */
 include-dirs:           TOP"/rts/dist/build" TOP"/includes" TOP"/includes/dist-derivedconstants/header" FFI_INCLUDE_DIR
@@ -71,43 +75,50 @@ hugs-options:
 cc-options:
 
 ld-options:
-#ifdef LEADING_UNDERSCORE
-           "-Wl,-u,_base_GHCziInt_I16zh_con_info"
-         , "-Wl,-u,_base_GHCziInt_I32zh_con_info"
-         , "-Wl,-u,_base_GHCziInt_I64zh_con_info"
-         , "-Wl,-u,_base_GHCziInt_I8zh_con_info"
-         , "-Wl,-u,_base_GHCziPtr_FunPtr_con_info"
-         , "-Wl,-u,_base_GHCziPtr_Ptr_con_info"
-         , "-Wl,-u,_base_GHCziStable_StablePtr_con_info"
-         , "-Wl,-u,_base_GHCziWord_W16zh_con_info"
-         , "-Wl,-u,_base_GHCziWord_W32zh_con_info"
-         , "-Wl,-u,_base_GHCziWord_W64zh_con_info"
-         , "-Wl,-u,_base_GHCziWord_W8zh_con_info"
-         , "-Wl,-u,_ghczmprim_GHCziTypes_Czh_con_info"
-         , "-Wl,-u,_ghczmprim_GHCziTypes_Dzh_con_info"
-         , "-Wl,-u,_ghczmprim_GHCziTypes_Fzh_con_info"
-         , "-Wl,-u,_ghczmprim_GHCziTypes_Izh_con_info"
-         , "-Wl,-u,_ghczmprim_GHCziTypes_Wzh_con_info"
+#if defined(LEADING_UNDERSCORE)
+
+           "-Wl,-u,_base_GHCziTopHandler_runIO_closure"
+         , "-Wl,-u,_base_GHCziTopHandler_runNonIO_closure"
+
          , "-Wl,-u,_ghczmprim_GHCziTuple_Z0T_closure"
-         , "-Wl,-u,_ghczmprim_GHCziTypes_False_closure"
          , "-Wl,-u,_ghczmprim_GHCziTypes_True_closure"
+         , "-Wl,-u,_ghczmprim_GHCziTypes_False_closure"
          , "-Wl,-u,_base_GHCziPack_unpackCString_closure"
+         , "-Wl,-u,_base_GHCziWeak_runFinalizzerBatch_closure"
          , "-Wl,-u,_base_GHCziIOziException_stackOverflow_closure"
          , "-Wl,-u,_base_GHCziIOziException_heapOverflow_closure"
-         , "-Wl,-u,_base_ControlziExceptionziBase_nonTermination_closure"
+         , "-Wl,-u,_base_GHCziIOziException_allocationLimitExceeded_closure"
          , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
          , "-Wl,-u,_base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
-         , "-Wl,-u,_base_GHCziIOziException_allocationLimitExceeded_closure"
+         , "-Wl,-u,_base_GHCziIOziException_cannotCompactFunction_closure"
+         , "-Wl,-u,_base_GHCziIOziException_cannotCompactPinned_closure"
+         , "-Wl,-u,_base_GHCziIOziException_cannotCompactMutable_closure"
+         , "-Wl,-u,_base_ControlziExceptionziBase_nonTermination_closure"
          , "-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_GHCziConcziSync_runSparks_closure"
          , "-Wl,-u,_base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
          , "-Wl,-u,_base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
-         , "-Wl,-u,_base_GHCziConcziSync_runSparks_closure"
          , "-Wl,-u,_base_GHCziConcziSignal_runHandlersPtr_closure"
+         , "-Wl,-u,_base_GHCziTopHandler_flushStdHandles_closure"
+         , "-Wl,-u,_base_GHCziTopHandler_runMainIO_closure"
+         , "-Wl,-u,_ghczmprim_GHCziTypes_Czh_con_info"
+         , "-Wl,-u,_ghczmprim_GHCziTypes_Izh_con_info"
+         , "-Wl,-u,_ghczmprim_GHCziTypes_Fzh_con_info"
+         , "-Wl,-u,_ghczmprim_GHCziTypes_Dzh_con_info"
+         , "-Wl,-u,_ghczmprim_GHCziTypes_Wzh_con_info"
+         , "-Wl,-u,_base_GHCziPtr_Ptr_con_info"
+         , "-Wl,-u,_base_GHCziPtr_FunPtr_con_info"
+         , "-Wl,-u,_base_GHCziInt_I8zh_con_info"
+         , "-Wl,-u,_base_GHCziInt_I16zh_con_info"
+         , "-Wl,-u,_base_GHCziInt_I32zh_con_info"
+         , "-Wl,-u,_base_GHCziInt_I64zh_con_info"
+         , "-Wl,-u,_base_GHCziWord_W8zh_con_info"
+         , "-Wl,-u,_base_GHCziWord_W16zh_con_info"
+         , "-Wl,-u,_base_GHCziWord_W32zh_con_info"
+         , "-Wl,-u,_base_GHCziWord_W64zh_con_info"
+         , "-Wl,-u,_base_GHCziStable_StablePtr_con_info"
+
          , "-Wl,-u,_hs_atomic_add8"
          , "-Wl,-u,_hs_atomic_add16"
          , "-Wl,-u,_hs_atomic_add32"
@@ -163,42 +174,48 @@ ld-options:
          , "-Wl,-u,_hs_atomicwrite64"
 #endif
 #else
-           "-Wl,-u,base_GHCziInt_I16zh_con_info"
-         , "-Wl,-u,base_GHCziInt_I32zh_con_info"
-         , "-Wl,-u,base_GHCziInt_I64zh_con_info"
-         , "-Wl,-u,base_GHCziInt_I8zh_con_info"
-         , "-Wl,-u,base_GHCziPtr_FunPtr_con_info"
-         , "-Wl,-u,base_GHCziPtr_Ptr_con_info"
-         , "-Wl,-u,base_GHCziStable_StablePtr_con_info"
-         , "-Wl,-u,base_GHCziWord_W16zh_con_info"
-         , "-Wl,-u,base_GHCziWord_W32zh_con_info"
-         , "-Wl,-u,base_GHCziWord_W64zh_con_info"
-         , "-Wl,-u,base_GHCziWord_W8zh_con_info"
-         , "-Wl,-u,ghczmprim_GHCziTypes_Czh_con_info"
-         , "-Wl,-u,ghczmprim_GHCziTypes_Dzh_con_info"
-         , "-Wl,-u,ghczmprim_GHCziTypes_Fzh_con_info"
-         , "-Wl,-u,ghczmprim_GHCziTypes_Izh_con_info"
-         , "-Wl,-u,ghczmprim_GHCziTypes_Wzh_con_info"
+           "-Wl,-u,base_GHCziTopHandler_runIO_closure"
+         , "-Wl,-u,base_GHCziTopHandler_runNonIO_closure"
+
          , "-Wl,-u,ghczmprim_GHCziTuple_Z0T_closure"
-         , "-Wl,-u,ghczmprim_GHCziTypes_False_closure"
          , "-Wl,-u,ghczmprim_GHCziTypes_True_closure"
+         , "-Wl,-u,ghczmprim_GHCziTypes_False_closure"
          , "-Wl,-u,base_GHCziPack_unpackCString_closure"
+         , "-Wl,-u,base_GHCziWeak_runFinalizzerBatch_closure"
          , "-Wl,-u,base_GHCziIOziException_stackOverflow_closure"
          , "-Wl,-u,base_GHCziIOziException_heapOverflow_closure"
-         , "-Wl,-u,base_ControlziExceptionziBase_nonTermination_closure"
+         , "-Wl,-u,base_GHCziIOziException_allocationLimitExceeded_closure"
          , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
          , "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
-         , "-Wl,-u,base_GHCziIOziException_allocationLimitExceeded_closure"
+         , "-Wl,-u,base_GHCziIOziException_cannotCompactFunction_closure"
+         , "-Wl,-u,base_GHCziIOziException_cannotCompactPinned_closure"
+         , "-Wl,-u,base_GHCziIOziException_cannotCompactMutable_closure"
+         , "-Wl,-u,base_ControlziExceptionziBase_nonTermination_closure"
          , "-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_GHCziConcziSync_runSparks_closure"
          , "-Wl,-u,base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
          , "-Wl,-u,base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
-         , "-Wl,-u,base_GHCziConcziSync_runSparks_closure"
          , "-Wl,-u,base_GHCziConcziSignal_runHandlersPtr_closure"
+         , "-Wl,-u,base_GHCziTopHandler_flushStdHandles_closure"
+         , "-Wl,-u,base_GHCziTopHandler_runMainIO_closure"
+         , "-Wl,-u,ghczmprim_GHCziTypes_Czh_con_info"
+         , "-Wl,-u,ghczmprim_GHCziTypes_Izh_con_info"
+         , "-Wl,-u,ghczmprim_GHCziTypes_Fzh_con_info"
+         , "-Wl,-u,ghczmprim_GHCziTypes_Dzh_con_info"
+         , "-Wl,-u,ghczmprim_GHCziTypes_Wzh_con_info"
+         , "-Wl,-u,base_GHCziPtr_Ptr_con_info"
+         , "-Wl,-u,base_GHCziPtr_FunPtr_con_info"
+         , "-Wl,-u,base_GHCziInt_I8zh_con_info"
+         , "-Wl,-u,base_GHCziInt_I16zh_con_info"
+         , "-Wl,-u,base_GHCziInt_I32zh_con_info"
+         , "-Wl,-u,base_GHCziInt_I64zh_con_info"
+         , "-Wl,-u,base_GHCziWord_W8zh_con_info"
+         , "-Wl,-u,base_GHCziWord_W16zh_con_info"
+         , "-Wl,-u,base_GHCziWord_W32zh_con_info"
+         , "-Wl,-u,base_GHCziWord_W64zh_con_info"
+         , "-Wl,-u,base_GHCziStable_StablePtr_con_info"
+
          , "-Wl,-u,hs_atomic_add8"
          , "-Wl,-u,hs_atomic_add16"
          , "-Wl,-u,hs_atomic_add32"
@@ -259,7 +276,7 @@ ld-options:
  *  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
+#if defined(darwin_HOST_OS)
          , "-Wl,-search_paths_first"
 #endif