38. FAQ Linux-PostgreSQL - Compiling accessory programs
38.1 The linker fails to find libX11 when compiling pgtclsh
Add the following to src/Makefile.custom X11_LIBDIR = /usr/X11R6/lib