Unverified Commit 4de3a34e authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

pjsip: fix builds failing to patch executables on macos (#416258)

parents 3cbfdb57 7872c3b8
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -109,8 +109,11 @@ stdenv.mkDerivation (finalAttrs: {
      done

      # Rewrite library references for all executables.
      find "$out" -executable -type f | while read executable; do
      find "$out" -type f -executable -path "*/bin/*" -o -type f -executable -path "*/share/*/samples/*" \
        | while read executable; do
          if isMachO "$executable"; then
            install_name_tool "''${change_args[@]}" "$executable"
          fi
        done
    '';