crc32c: fix tests on darwin

Fix test library loading by enabling build-time rpath
This commit is contained in:
Ryan Burns 2021-11-04 18:01:22 -07:00
parent 8aba57cfc9
commit 3da7e765cd

View file

@ -29,6 +29,8 @@ stdenv.mkDerivation rec {
"-DCRC32C_BUILD_BENCHMARKS=0"
"-DCRC32C_USE_GLOG=0"
"-DBUILD_SHARED_LIBS=${if staticOnly then "0" else "1"}"
] ++ lib.optionals stdenv.isDarwin [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
];
doCheck = false;