My point is that using "gcc -pthread" may implicitly add the dependency on -lc_r, regardless of whether -lc_r is specified on the link line, so that's an easy workaround for the libtool behaviour.
FWIW, your patch causes it to build correctly. *shrug* -- justin
