diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2023-01-07 04:05:54 +0800 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-01-07 12:15:15 -0500 |
commit | a960ca817d6ad0109ea6edda50da3902cc538e86 (patch) | |
tree | 221c4b23e382ffe704915a71e55012596ee9f81d /testsuite | |
parent | 6206cb9287f3f6e70c669660a646a65274870d2b (diff) | |
download | haskell-a960ca817d6ad0109ea6edda50da3902cc538e86.tar.gz |
T10955: Set DYLD_LIBRARY_PATH for darwin
The correct path to direct the dynamic linker on darwin is
DYLD_LIBRARY_PATH rather than LD_LIBRARY_PATH. On recent versions of OSX
using LD_LIBRARY_PATH seems to have stopped working.
For more reading see:
https://stackoverflow.com/questions/3146274/is-it-ok-to-use-dyld-library-path-on-mac-os-x-and-whats-the-dynamic-library-s
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/ghci/linking/dyn/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/ghci/linking/dyn/Makefile b/testsuite/tests/ghci/linking/dyn/Makefile index da8ee20790..1e000ff524 100644 --- a/testsuite/tests/ghci/linking/dyn/Makefile +++ b/testsuite/tests/ghci/linking/dyn/Makefile @@ -84,7 +84,7 @@ compile_libAB_dyn: '$(TEST_HC)' $(MY_TEST_HC_OPTS) -odir "bin_dyn" -shared B.c -o "bin_dyn/$(call DLL,B)" $(call DEF,B) -lA -L"./bin_dyn" rm -f bin_dyn/*.a '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -v0 -o "bin_dyn/$(call EXE,T10955dyn)" -L./bin_dyn -lB -lA T10955dyn.hs -v0 - LD_LIBRARY_PATH=./bin_dyn ./bin_dyn/$(call EXE,T10955dyn) + DYLD_LIBRARY_PATH=./bin_dyn LD_LIBRARY_PATH=./bin_dyn ./bin_dyn/$(call EXE,T10955dyn) .PHONY: compile_libAS_impl_gcc compile_libAS_impl_gcc: |