libstdc++: Add options for libatomic to test
authorJonathan Wakely <jwakely@redhat.com>
Thu, 22 Apr 2021 14:51:08 +0000 (15:51 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 22 Apr 2021 14:51:08 +0000 (15:51 +0100)
commit58871c03318e080962f022f5d77db3c4fde3e351
treef930a871a9aa46bd25a5e995e5cdc1e00d057a8e
parent19aa9bc9897955817622574e62b53b24ae0837e9
libstdc++: Add options for libatomic to test

This fixes a linker error on AIX:

FAIL: 30_threads/semaphore/try_acquire_posix.cc (test for excess errors)
Excess errors:
ld: 0711-317 ERROR: Undefined symbol: .__atomic_fetch_add_8
ld: 0711-317 ERROR: Undefined symbol: .__atomic_load_8
ld: 0711-317 ERROR: Undefined symbol: .__atomic_fetch_sub_8
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status

libstdc++-v3/ChangeLog:

* testsuite/30_threads/semaphore/try_acquire_posix.cc: Add
options for libatomic.
libstdc++-v3/testsuite/30_threads/semaphore/try_acquire_posix.cc