If you have legacy libraries that are not updated by the vendor for Apple Silicon, the following workaround may be used (created by Bogo Giertler):
This is the typical error message:
clang: error: linker command failed with exit code 1 (use -v to see invocation)```