Theano/Theano — pull request #1397 by rkern (2013-06-03 09:20:07+00:00)
Title: FIX: Do not explicitly link against libpython2.x on OS X.

On OS X, for both framework and non-framework builds of Python, the correct way to link extension modules is to use the link flag `-undefined dynamic_lookup` instead of specifying `-framework Python` or `-lpython2.x`. With either of the latter, it is very easy to accidentally link against Python distributions that are on the system but are not the Python being used to build Theano. This is a *very* common case on OS X since Python is provided by the OS, but users should be using third party builds of Python.

I believe this addresses issue #1319. I have not been able to test how this affects GPU-using extension modules with nvcc, so I would appreciate if someone else could test that.