The ebuilds for python-2.4 built libpython2.4.dylib. Have python2.5 do the same. I tried adapting the patch from 2.4 myself, but ended up having src_compile fail with: ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option I haven't had time to inspect this further yet. Reproducible: Always
Progress: building with -fno-common resolves the previous error, but now I get: ld: Undefined symbols: _environ
the environ thing can be solved this way: +#ifdef __darwin__ +# include <crt_externs.h> +# define environ (*_NSGetEnviron()) +#endif Can you post your patch so we can get it into the tree asap? I like having a libpython myself too. Thanks for looking into this!
Fixed in dev-lang/python-2.5.1-r02.2