[Chapel Merge] Don't include -pthread in link args from parsing .

Branch: refs/heads/main
Revision: f817de2
Author: mppf
Link: Don't include -pthread in link args from parsing .pc files by mppf · Pull Request #19960 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19960 from mppf/follow-19913-multilocale-python

Don't include -pthread in link args from parsing .pc files

PR #19913 started parsing the re2.pc pkg-config file.
One flag currently included in the link options there is -pthread.
However this flag messes up linking with ld which occurs in multilocale
Python interop. So, this PR adjusts filter_libs (which
is called from pkgconfig_get_bundled_link_args) to filter
out -pthread.

Reviewed by @ronawho - thanks!

  • interop/python/multilocale/ passes with CHPL_COMM=gasnet and CHPL_LIB_PIC=pic

  • make check and test/regex/ferguson/regexp.chpl pass on Ubuntu 22.04

  • make check and test/regex/ferguson/regexp.chpl pass on Mac OS X

  • full local testing

    Modified Files:
    M util/chplenv/third_party_utils.py

    Compare: Comparing bcc4ac3109ee...f817de2e7a9a · chapel-lang/chapel · GitHub