libpython.dylib sym link ?

Rainer Müller raimue at
Tue Sep 13 01:25:21 PDT 2011

On 2011-09-12 22:32 , Chris Jones wrote:
> I am trying to fix a problem with the root port and the python26 variant. The code for the variant is below.
> As far as I can tell, the configure step for the build fails because the python-libdir directory does not have a lib libpython.dylib file. It only has the versioned file libpython2.6.dylib.
> Chris-Jones-Macbook-Pro ~ > ls /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/
> Makefile		Setup.config		config.c		install-sh		libpython2.6.dylib	python.o
> Setup			Setup.local		libpython2.6.a		makesetup
> Is there anyway I can create this versionless version, via a sym link for instance (which is how the /Developer/SDKs areas handle this) ? Or any other advice on how to fix this ?

I think build systems should use the pythonX.Y-config commands or the
Makefile provided in the config directory to determine flags.

'python2.6-config --ldflags' returns -lpython2.6 for me which would be

$ python2.6-config --ldflags
-ldl -framework CoreFoundation -lpython2.6

I guess the root port always uses -lpython without querying the python
config. A symlink in this directory should not harm, so it could be added.


More information about the macports-users mailing list