Skip to content
  • 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