diff options
Diffstat (limited to 'gcc/testsuite/lib/gcc.exp')
-rw-r--r-- | gcc/testsuite/lib/gcc.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/gcc.exp b/gcc/testsuite/lib/gcc.exp index 2f553387666..e5d3d5d857e 100644 --- a/gcc/testsuite/lib/gcc.exp +++ b/gcc/testsuite/lib/gcc.exp @@ -144,6 +144,11 @@ proc gcc_target_compile { source dest type options } { if [target_info exists gcc,timeout] { lappend options "timeout=[target_info gcc,timeout]" } + # APPLE LOCAL begin testsuite multiply defined + if [ istarget *-*-darwin* ] { + lappend options "ldflags=-Wl,-multiply_defined,suppress" + } + # APPLE LOCAL end testsuite multiply defined lappend options "compiler=$GCC_UNDER_TEST" set options [dg-additional-files-options $options $source] return [target_compile $source $dest $type $options] |