Skip to content
Snippets Groups Projects
  1. Dec 21, 2021
  2. Oct 12, 2021
    • Ben Gamari's avatar
      testsuite: Clean up dynlib support predicates · 05303f68
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      Previously it was unclear whether req_shared_libs should require:
      
       * that the platform supports dynamic library loading,
       * that GHC supports dynamic linking of Haskell code, or
       * that the dyn way libraries were built
      
      Clarify by splitting the predicate into two:
      
       * `req_dynamic_lib_support` demands that the platform support dynamic
         linking
       * `req_dynamic_hs` demands that the GHC support dynamic linking of
         Haskell code on the target platform
      
      Naturally `req_dynamic_hs` cannot be true unless
      `req_dynamic_lib_support` is also true.
      05303f68
    • Ben Gamari's avatar
      testsuite: Mark T13702 as requiring share libraries · 852ec4f5
      Ben Gamari authored and Marge Bot's avatar Marge Bot committed
      It fails on statically-built Alpine with
      ```
      T13702.hs:1:1: error:
          Could not find module ‘Prelude’
          Perhaps you haven't installed the "dyn" libraries for package ‘base-4.15.0.0’?
          Use -v (or `:set -v` in ghci) to see a list of the files searched for.
        |
      1 | {-# LANGUAGE ForeignFunctionInterface #-}
        | ^
      ```
      852ec4f5
  3. Sep 17, 2021
  4. Feb 06, 2021
  5. Oct 25, 2020
  6. Jul 15, 2020
  7. Jul 07, 2020
    • adam's avatar
      add -flink-rts flag to link the rts when linking a shared or static library #18072 · f496c955
      adam authored and Marge Bot's avatar Marge Bot committed
      By default we don't link the RTS when linking shared libraries because in the
      most usual mode a shared library is an intermediary product, for example a
      Haskell library, that will be linked into some executable in the end. So we
      wish to defer the RTS flavour to link to the final link.
      
      However sometimes the final product is the shared library, for example when
      writing a plugin for some other system, so we do wish the shared library to
      link the RTS.
      
      For consistency we also make -staticlib honor this flag and its inversion.
      -staticlib currently implies -flink-shared.
      f496c955
  8. Mar 29, 2020
  9. Apr 14, 2019
  10. Jan 30, 2019
  11. Aug 22, 2017
  12. Apr 17, 2017
    • Sergei Trofimovich's avatar
      hs_add_root() RTS API removal · a92ff5d6
      Sergei Trofimovich authored
      
      Before ghc-7.2 hs_add_root() had to be used to initialize haskell
      modules when haskell was called from FFI.
      
      commit a52ff761
      ("Change the way module initialisation is done (#3252, #4417)")
      removed needs for hs_add_root() and made function a no-op.
      For backward compatibility '__stginit_<module>' symbol was
      not removed.
      
      This change removes no-op hs_add_root() function and unused
      '__stginit_<module>' symbol from each haskell module.
      
      Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
      
      Test Plan: ./validate
      
      Reviewers: simonmar, austin, bgamari, erikd
      
      Reviewed By: simonmar
      
      Subscribers: rwbarton, thomie
      
      Differential Revision: https://phabricator.haskell.org/D3460
      a92ff5d6
  13. Jan 22, 2017
  14. Feb 23, 2016
  15. Oct 07, 2014
  16. Feb 11, 2013
  17. Sep 09, 2012
  18. Aug 23, 2012
  19. May 01, 2012
  20. Nov 17, 2011
  21. Nov 16, 2011
  22. Oct 28, 2011
  23. Oct 11, 2011
  24. Oct 09, 2011
  25. Oct 06, 2011
    • Ian Lynagh's avatar
      Fix #4264 on OS X · 8ae32011
      Ian Lynagh authored
      We were getting the RTS linked twice, which caused odd things to happen.
      8ae32011
  26. Jul 20, 2011
Loading