Skip to content
  • Ben Gamari's avatar
    Support LIBRARY_PATH and LD_LIBRARY_PATH in rts · 87917a59
    Ben Gamari authored
    `LIBRARY_PATH` is used to find libraries and other link artifacts while
    `LD_LIBRARY_PATH` is used to find shared libraries by the loader.
    
    Due to an implementation detail on Windows, using `LIBRARY_PATH` will
    automatically add the path of any library found to the loader's path.
    
    So in that case `LD_LIBRARY_PATH` won't be needed.
    
    Test Plan:
    ./validate along with T14611 which has been made Windows only
    due to linux using the system linker/loader by default. So I feel a
    testcase there is unwarranted as the support is indirect via glibc.
    
    Reviewers: hvr, bgamari, erikd, simonmar, RyanGlScott
    
    Reviewed By: RyanGlScott
    
    Subscribers: RyanGlScott, rwbarton, thomie, carter
    
    GHC Trac Issues: #14611
    
    Differential Revision: https://phabricator.haskell.org/D4275
    87917a59