[Chapel Merge] Include system dependencies in mli link (#19036)

Branch: refs/heads/main
Revision: 415e934
Author: dlongnecke-cray
Link: Include system dependencies in mli link by mppf · Pull Request #19036 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19036 from mppf/follow-18985

Include system dependencies in mli link (#19036)

Follow-up to #18985 and #18880.

To resolve problems in qthreads+C backend configurations.

Passed COMM=gasnet, CHPL_LLVM=none paratest.

Tested and reviewed by @dlongnecke-cray.

Modified Files:
M runtime/etc/Makefile.mli-common

Compare: https://github.com/chapel-lang/chapel/compare/f1b556afe465...415e934b21bb