Installing tklib in a cross-compilation environment fails. The problem is in Makefile.in, where the option -app-path is not used.
The following:
install:
$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/installer.tcl` \
-no-examples -no-html \
-pkg-path $(DESTDIR)$(pkglibdir) \
-nroff-path $(DESTDIR)$(mandir)/mann \
-no-wait -no-gui
Must be changed to:
install:
$(TCLSH_PROG) `$(CYGPATH) $(srcdir)/installer.tcl` \
-no-examples -no-html \
-pkg-path $(DESTDIR)$(pkglibdir) \
-app-path $(DESTDIR)$(bindir) \
-nroff-path $(DESTDIR)$(mandir)/mann \
-no-wait -no-gui
And the following line must be also added somewhere in Makefile.in:
bindir = @bindir@
And we have to put '-no-apps' into the targets 'install-doc' and 'install-libraries', to prevent them from trying to install things beyond what they are supposed to install.