Merge pull request #208461 from wegank/openfec-darwin

openfec: fix runtime error on darwin
This commit is contained in:
Robert Scott 2023-01-03 22:40:03 +00:00 committed by GitHub
commit 39bc9634f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,9 @@ stdenv.mkDerivation rec {
find $dev/include -type f -a ! -iname '*.h' -delete
install -D -m755 -t $out/lib ../bin/Release/libopenfec${so}
'' + lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libopenfec${so} $out/lib/libopenfec${so}
'' + ''
ln -s libopenfec${so} $out/lib/libopenfec${so}.1
'';