graphviz: learn python ldflags from python-config

Use python-config --ldflags to make sure the active python framework's
lib directory is in the linker search path.

Fixes #32180.
Could you report this to the graphviz developers, please?