Was trying to use OpenSSL.v3.5.2.aarch64-apple-darwin, and noticed the pkgconfig file is corrupt. It declares that libdir==exec_prefix instead of at exec_prefix/lib where the libraries actually are:
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${exec_prefix}
includedir=${prefix}/include
Name: OpenSSL-libssl
Description: Secure Sockets Layer and cryptography libraries
Version: 3.5.2
Requires.private: libcrypto
Libs: -L${libdir} -lssl
Cflags: -I${includedir}