I happened to notice that configure extracts TCL_SHLIB_LD_LIBSfrom tclConfig.sh, and puts the value into Makefile.global,but then we never use it anywhere. AFAICT the only use wentaway in cd75f94da, in 2003. I propose the attached.
regards, tom lane