pjsip: fix pjsua executable compatiblity with darwin

This commit is contained in:
Bob van der Linden 2023-04-03 15:19:28 +02:00
parent c32dd072f0
commit 072cd2ab7a
No known key found for this signature in database
GPG key ID: EEBE8E3EC4A31364

View file

@ -98,6 +98,11 @@ stdenv.mkDerivation (finalAttrs: {
install_name_tool -id $lib "''${change_args[@]}" $lib
fi
done
# Rewrite library references for all executables.
find "$out" -executable -type f | while read executable; do
install_name_tool "''${change_args[@]}" "$executable"
done
'';
# We need the libgcc_s.so.1 loadable (for pthread_cancel to work)