Merge pull request #152728 from jdelStrother/libjxl-darwin

libjxl: Fix tests on darwin
This commit is contained in:
Jörg Thalheim 2022-01-04 19:44:13 +00:00 committed by GitHub
commit e99f36fc5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,9 @@ stdenv.mkDerivation rec {
# LD_LIBRARY_PATH setting errors with: # LD_LIBRARY_PATH setting errors with:
# /build/source/build/tools/tests/libjxl_test: error while loading shared libraries: libjxl.so.0 # /build/source/build/tools/tests/libjxl_test: error while loading shared libraries: libjxl.so.0
# The required file is in the build directory (`$PWD`). # 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 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD
''; '';