On the latest stable ubuntu: $ python-config --ldflags -L/usr/lib/python2.6/config -lpthread -ldl -lutil -lm -lpython2.6
In case the user is statically linking, I believe the -lpython2.6 should go before the other -l's. Also, -lz is missing so whenever you try to link against python you get tons of errors about missing PyZlib references. Am I right in thinking these are bugs? -- http://mail.python.org/mailman/listinfo/python-list