Ports: Don't use getaddrinfo for curl

serenity's getaddrinfo is a stub, but curl detects it anyway, and uses
it instead of gethostbyname.
This commit is contained in:
Peter Elliott 2021-04-04 15:59:52 -06:00 committed by Andreas Kling
parent 02a0feff1c
commit a09421f1be

View file

@ -10,3 +10,8 @@ depends=zlib
auth_type="sig"
auth_import_key="27EDEAF22F3ABCEB50DB9A125CC908FDB71E12C2"
auth_opts="curl-${version}.tar.bz2.asc curl-${version}.tar.bz2"
pre_configure() {
# serenity's getaddrinfo exists but is a stub
export curl_disallow_getaddrinfo=yes
}