krakjoe/pthreads — pull request #3 by chobie (2012-09-24 04:08:14+00:00)
Title: OSX: add static storage class for `pthreads_equal_func`

I'm not sure why can't find `pthreads_equal_func` symbol on OSX. this PR fix the problem.

here are my research:

compile assemble file.

````
cc -I. -I/Users/chobie/src/pthreads -DPHP_ATOM_INC -I/Users/chobie/src/pthreads/include -I/Users/chobie/src/pthreads/main -I/Users/chobie/src/pthreads -I/Users/chobie/.phpenv/versions/5.4.7-thread-goto/include/php -I/Users/chobie/.phpenv/versions/5.4.7-thread-goto/include/php/main -I/Users/chobie/.phpenv/versions/5.4.7-thread-goto/include/php/TSRM -I/Users/chobie/.phpenv/versions/5.4.7-thread-goto/include/php/Zend -I/Users/chobie/.phpenv/versions/5.4.7-thread-goto/include/php/ext -I/Users/chobie/.phpenv/versions/5.4.7-thread-goto/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c -S /Users/chobie/src/pthreads/php_pthreads.c -fno-common -DPIC
````

and assembled file looks up `pthreads_equal_func` from GOT. but there is no reference on OSX.

````
movq	_pthreads_equal_func@GOTPCREL(%rip), %rdx
````

Thanks,