haskell.lib.buildStackProject: fix treatment of LD_LIBRARY_PATH.
Don't make LD_LIBRARY_PATH pick up cwd when original string is empty, due to colon terminated search path.
This commit is contained in:
parent
e6aa4e0ccb
commit
70bc97b731
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ with stdenv.lib;
|
|||
|
||||
{ buildInputs ? []
|
||||
, extraArgs ? []
|
||||
, LD_LIBRARY_PATH ? ""
|
||||
, LD_LIBRARY_PATH ? []
|
||||
, ghc ? ghc
|
||||
, ...
|
||||
}@args:
|
||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation (args // {
|
|||
extraArgs;
|
||||
|
||||
# XXX: workaround for https://ghc.haskell.org/trac/ghc/ticket/11042.
|
||||
LD_LIBRARY_PATH = "${makeLibraryPath buildInputs}:${LD_LIBRARY_PATH}";
|
||||
LD_LIBRARY_PATH = makeLibraryPath (LD_LIBRARY_PATH ++ buildInputs);
|
||||
|
||||
preferLocalBuild = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue