X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fpackage.conf.in;h=f73e6b1421ffef89503aa59edd46940be18fd5ba;hb=d5a9ee0e98a76bca1b41bbc5252e851c88b3ff4c;hp=9cc03f06ec1d7e555fb291126aa232cd3c845054;hpb=d37d720f79f3269be95f3662a11009e6834023f6;p=ghc-hetmet.git diff --git a/rts/package.conf.in b/rts/package.conf.in index 9cc03f0..f73e6b1 100644 --- a/rts/package.conf.in +++ b/rts/package.conf.in @@ -56,6 +56,9 @@ extra-libraries: "m" /* for ldexp() */ #if USE_PAPI , "papi" #endif +#ifdef USE_LIBFFI + , "ffi" +#endif #ifdef INSTALLING include-dirs: INCLUDE_DIR GMP_INCLUDE_DIRS @@ -66,6 +69,7 @@ include-dirs: INCLUDE_DIR GMP_INCLUDE_DIRS include-dirs: FPTOOLS_TOP_ABS"/includes" FPTOOLS_TOP_ABS"/rts" FPTOOLS_TOP_ABS"/gmp/gmpbuild" + GMP_INCLUDE_DIRS #endif includes: Stg.h @@ -150,6 +154,14 @@ ld-options: , "-u", "base_GHCziConc_ensureIOManagerIsRunning_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_BUILD_OS + , "-Wl,-search_paths_first" +#endif + framework-dirs: #ifdef HAVE_FRAMEWORK_GMP