summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@well-typed.com>2019-11-22 10:28:22 -0500
committerBen Gamari <ben@well-typed.com>2019-11-23 10:03:37 -0500
commitcf4306f1c1ca565b0bbf68eebef44aa4594e6a0f (patch)
tree1a965ae1df842cb855c9f6e2055991307c42bd7e
parentd4d10501c6ec995711d626eead58b84bf413d0b3 (diff)
downloadhaskell-wip/T1407-fix.tar.gz
testsuite: Don't override LD_LIBRARY_PATH, only prependwip/T1407-fix
NixOS development environments often require that LD_LIBRARY_PATH be set in order to find system libraries. T1407 was overriding LD_LIBRARY_PATH, dropping these directories. Now it merely prepends, its directory.
-rw-r--r--testsuite/tests/ghci/linking/dyn/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/ghci/linking/dyn/Makefile b/testsuite/tests/ghci/linking/dyn/Makefile
index d4a65a6603..ee345e5560 100644
--- a/testsuite/tests/ghci/linking/dyn/Makefile
+++ b/testsuite/tests/ghci/linking/dyn/Makefile
@@ -94,7 +94,7 @@ compile_libAS_impl_msvc:
.PHONY: T1407
T1407:
- cat T1407.script | LD_LIBRARY_PATH=. "$(TEST_HC)" $(TEST_HC_OPTS_INTERACTIVE) -L"T1407dir"
+ cat T1407.script | LD_LIBRARY_PATH=".:$(LD_LIBRARY_PATH)" "$(TEST_HC)" $(TEST_HC_OPTS_INTERACTIVE) -L"T1407dir"
.PHONY: T3242
echo ":q" | '$(TEST_HC)' $(TEST_HC_OPTS_INTERACTIVE) -lm