thouis/Pillow — pull request #1 by LeeKamentsky (2012-09-21 19:50:14+00:00)
Title: Library order in setup.py

Hi Ray,
I was seeing a problem on the Mac build machine where PIL's _imaging.so was linked to the system libjpeg. It looks to me like setup.py adds /usr/local/lib before adding the locations for libjpg and libtiff from the homebrew. We're seeing py2app on the build machine pull in libjpg from /usr/local/lib and that is causing _imaging.so not to load with a version mismatch error.

The patch calls add_library for JPEG_ROOT and TIFF_ROOT before calling add_library for /usr/local/lib and that seems to do the job.

Thanks,
Lee