diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2023-01-21 19:52:58 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2023-01-22 09:32:50 +0000 |
commit | e4703bd0e15b4ed6e5eae36604b28bd4ca4f8cee (patch) | |
tree | 7969e8e3fa536115165c06dce6e2937141b631e7 /libffi/testsuite/lib | |
parent | d5717e7f6fd5a13356ebc46c3b54e081a99dd826 (diff) | |
download | gcc-e4703bd0e15b4ed6e5eae36604b28bd4ca4f8cee.zip gcc-e4703bd0e15b4ed6e5eae36604b28bd4ca4f8cee.tar.gz gcc-e4703bd0e15b4ed6e5eae36604b28bd4ca4f8cee.tar.bz2 |
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.
Diffstat (limited to 'libffi/testsuite/lib')
-rw-r--r-- | libffi/testsuite/lib/libffi.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libffi/testsuite/lib/libffi.exp b/libffi/testsuite/lib/libffi.exp index 7dc7b5d..15d3d5e 100644 --- a/libffi/testsuite/lib/libffi.exp +++ b/libffi/testsuite/lib/libffi.exp @@ -384,6 +384,7 @@ proc libffi_target_compile { source dest type options } { if { [istarget "*-*-darwin9*"] || [istarget "*-*-darwin1*"] || [istarget "*-*-darwin2*"] } { lappend options "additional_flags=-Wl,-allow_stack_execute" + lappend options "additional_flags=-Wl,-search_paths_first" } # If you're building the compiler with --prefix set to a place |