Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • adam's avatar
    f496c955
    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
    History
    add -flink-rts flag to link the rts when linking a shared or static library #18072
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.