From: Iain Sandoe Date: Mon, 1 Jun 2026 23:10:43 +0000 (+0100) Subject: testsuite, c++, Darwin: Do not duplicate asan and pthread libs. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c3b1e2e972d2fb331b4ea37080c5bf5e4c1d7ae;p=thirdparty%2Fgcc.git testsuite, c++, Darwin: Do not duplicate asan and pthread libs. The linker on newer versions of Darwin complains about duplicate libaries, The asan library is already provided by the relevant specs and pthreads are included in libSystem. gcc/testsuite/ChangeLog: * g++.dg/asan/deep-thread-stack-1.C: Omit duplicate libraries for Darwin. Signed-off-by: Iain Sandoe --- diff --git a/gcc/testsuite/g++.dg/asan/deep-thread-stack-1.C b/gcc/testsuite/g++.dg/asan/deep-thread-stack-1.C index d5d85c42d93..98f4b09a208 100644 --- a/gcc/testsuite/g++.dg/asan/deep-thread-stack-1.C +++ b/gcc/testsuite/g++.dg/asan/deep-thread-stack-1.C @@ -1,5 +1,5 @@ // { dg-do run { target pthread } } -// { dg-options "-lasan -lpthread" } +// { dg-options "-lasan -lpthread" { target { ! *-*-darwin* } } } // { dg-shouldfail "asan" } #include