[Chapel Merge] Skip `--static` test if libpthread.a isn't found

Branch: refs/heads/main
Revision: 961ef2f6a3f7d652e034395b1c70052a87524a29
Author: Elliot Ronaghan
Link: Skip `--static` test if libpthread.a isn't found by ronawho · Pull Request #21027 · chapel-lang/chapel · GitHub
Log Message:

Skip --static test if libpthread.a isn't found
Currently, the --static compiler flags maps to a backend flag like -static, which tries to create a fully static executable. This is support by fewer and fewer distributions anymore since they don't ship static versions of libraries we need like pthreads. We could probably stand to revisit what --static means or whether we want to continue to have the flag, but for now I just want to prevent the test from failing on systems that lack static versions of libraries we need. Part of Cray/chapel-private#4011
Compare: Comparing ee492a0fa4b155535d4af81651c8c2ba4d665289...961ef2f6a3f7d652e034395b1c70052a87524a29 · chapel-lang/chapel · GitHub
Diff: https://github.com/chapel-lang/chapel/pull/21027.diff
Modified Files:
.github/workflows/email.yml,modules/dists/BlockDist.chpl,modules/internal/DefaultRectangular.chpl,test/compflags/link/sungeun/static_dynamic.skipif,test/library/packages/ZMQ.skipif,test/library/packages/ZMQ/getLastEndpointMain.preexec,test/library/packages/ZMQ/version.prediff,test/studies/shootout/submitted/knucleotide3.perfkeys,test/studies/shootout/submitted/knucleotide4.perfkeys

Added Files:
test/library/packages/ZMQ/COMPOPTS,test/library/packages/ZMQ/interop-py/COMPOPTS,test/library/packages/ZMQ/multilocale/COMPOPTS

Removed Files: