libjxl: Fix tests on darwin
This fixes the LibraryCLinkageTest, which was failing to find the built library: 1122/1129 Test #1128: LibraryCLinkageTest .......................................................................................................Subprocess aborted***Exception: 0.32 sec dyld[53579]: Library not loaded: @rpath/libjxl.0.dylib Referenced from: /private/tmp/nix-build-libjxl-0.5.drv-1/source/build/tools/tests/libjxl_test Reason: tried: '/nix/store/82d092jfk2sckailcp5hpb29xsxhk4h2-swift-corefoundation/Library/Frameworks/libjxl.0.dylib' (no such file), '/nix/store/82d092jfk2sckailcp5hpb29xsxhk4h2-swift-corefoundation/Library/Frameworks/libjxl.0.dylib' (no
This commit is contained in:
parent
27c0a7faf6
commit
a11763fa36
1 changed files with 3 additions and 1 deletions
|
@ -108,7 +108,9 @@ stdenv.mkDerivation rec {
|
|||
# LD_LIBRARY_PATH setting errors with:
|
||||
# /build/source/build/tools/tests/libjxl_test: error while loading shared libraries: libjxl.so.0
|
||||
# The required file is in the build directory (`$PWD`).
|
||||
preCheck = ''
|
||||
preCheck = if stdenv.isDarwin then ''
|
||||
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD
|
||||
'' else ''
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue