There were two things that prevented this port from compiling properly
on PowerPC:
- The `pthread hack' (GECKO_PTHREAD_LIBS) tried to obtain -lpthread from
the gcc dumpspecs output. It expects these compiler flags to be on the
first line of output, while on PowerPC the flags are on the second
line.
- On FreeBSD/powerpc it needs to use the Linux xptcall wrappers.
I am not entirely convinced that it works properly, though. I've seen
Firefox crash inside pthread_mutex_lock during shutdown. I'm committing
these patches anyway, because getting it to compile is already a step
forward.
Approved by: marcus