building rpms from source / cent7

Hello, I am coming up across errors, which appear to be library / compiler incompatibilities. I am trying to build a github checkout of PS 5.7, following and it fails on the second rpmbuild command with a general inability to find libs that it previously found and used (like -lpthread is now not found). I am using a docker centos 7 to build rpms. What are the exact versions of os / libs used to create the prebuilt rpms for cent7? I’ve used this general formula for making rpms before, and it is only now not working with this current centos and ps checkout.