Darwin's linker defaults to complaining about missing symbols, leading
to a spurious fail of this testcase. We can work around this by
allowing undefined symbols to be considered as dynamically looked-up.
gcc/testsuite/ChangeLog:
* gcc.dg/pr97172-2.c: Allow undefined symbols at link-time.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
streams
{ dg-do link }
{ dg-options "-Wall -flto -fpic -shared" }
+ { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } }
{ dg-require-effective-target fpic }
{ dg-require-effective-target shared }
{ dg-require-effective-target lto } */