Repository: yt-dlp
Issue: On Apple Silicon, `Error relocating /lib64/libz.so.1: ...symbol not found`
Labels: bug,docs/meta/cleanup,regression

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting a bug unrelated to a specific site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

When using `2024.05.27` release, if I run `yt-dlp` from an amd64 Docker container of `public.ecr.aws/lambda/python:3.12` the binary won't start properly because of libz issues. Please note that previous releases of `yt-dlp` (e.g. the April one) worked fine on the same setup.

I'm using an M1 Apple computer.

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
$ docker run --platform=linux/amd64 --entrypoint=bash -ti --rm public.ecr.aws/lambda/python:3.12 
bash-5.2# curl -sLO https://github.com/yt-dlp/yt-dlp/releases/download/2024.05.27/yt-dlp_linux
bash-5.2# chmod +x ./yt-dlp_linux 
bash-5.2# ./yt-dlp_linux -vU --help # using 27th May release
Error relocating /lib64/libz.so.1: crc32_z: symbol not found
Error relocating /lib64/libz.so.1: __snprintf_chk: symbol not found
Error relocating /lib64/libz.so.1: __vsnprintf_chk: symbol not found
bash-5.2# curl -sLO https://github.com/yt-dlp/yt-dlp/releases/download/2024.04.09/yt-dlp_linux
bash-5.2# ./yt-dlp_linux -vU --help | head # using 9th April release
[debug] Command-line config: ['-vU', '--help']

Usage: yt-dlp_linux [OPTIONS] URL [URL...]

Options:
  General Options:
    -h, --help                      Print this help text and exit
    --version                       Print program version and exit
    -U, --update                    Update this program to the latest stable
                                    version
    --no-update                     Do not check for updates (default)
    --update-to [CHANNEL]@[TAG]     Upgrade/downgrade to a specific version.
```