I have a SO 64bit (not arm 64) so I have downloaded the package manually to collect all libraries for cross compilation,it is true there are missing dependencies because there are many packages (on Windows all dll are under folder libs).
Now I am searching where libpgcommon and libpgport where are installed. I will install a SO arm64 to search library alternative I thinks should build Postgresql for Arm.
When I am building the library with libpq.a it shows following error, probably there are missings libraries. Do you know the additional library that I need to link?