[chapel-lang/chapel] Specify dynamic linking for libfabric via pkg-conf

Branch: refs/heads/release/1.22
Revision: b572755
Author: gbtitus
Log Message:

Merge pull request #16259 from gbtitus/1.22-dyn-pkg-config-for-shasta-libfabric

Specify dynamic linking for libfabric via pkg-config on Shasta.

(Duplicate PR #16226 from master to release/1.22.)

(Original PR reviewed by @ronawho.)

We link dynamically on Shasta, so indicate that when using pkg-config to
get linker options for libfabric on that target platform.

This resolves Cray/chapel-private#1224.

Modified Files:
M util/chplenv/third_party_utils.py

Compare: https://github.com/chapel-lang/chapel/compare/ebba55684d4c...b572755c593f