FTBFS on sparc: __sync_test_and_add_4
Hi sparc porters. I'm writing to ask for your assistance on a FTBFS on
my package csound on sparc. The build log is here. The failure is
> libCsoundAC.so.5.2: undefined reference to `__sync_fetch_and_add_4'
Csound uses __sync_lock_test_and_set for spinlocks, and tests for
their existence at build time to use them. Sparc's gcc apparently
provides said function, since the test succeeds, but I'm getting the
above failure (note that __sync_fetch_and_add_4 is nowhere mentioned
in the csound sources).
What is a possible cause for this? I don't have access to sparc
machines so I'm kind of unsure what to do here. Note that csound uses
-Wl,--as-needed for most of its libraries.
Please CC me on replies, I'm not suscribed.