Darwin, libffi, testsuite: Ensure we pick up the convenience lib.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 21 Jan 2023 19:52:58 +0000 (19:52 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 22 Jan 2023 09:32:50 +0000 (09:32 +0000)
commite4703bd0e15b4ed6e5eae36604b28bd4ca4f8cee
tree7969e8e3fa536115165c06dce6e2937141b631e7
parentd5717e7f6fd5a13356ebc46c3b54e081a99dd826
Darwin, libffi, testsuite: Ensure we pick up the convenience lib.

For several Darwin linker versions, the link paths are first traversed
looking for shared libraries, and then again looking for archives.

We want the paths to be searched for both shared and archives in order
so that we will find the non-shared libffi in the testsuite (otherwise
the installed version in the system will be found instead).

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libffi/ChangeLog:

* testsuite/lib/libffi.exp: Search for both shared and archive
in each path in turn.
libffi/testsuite/lib/libffi.exp