Diff

Differences From Artifact [1ef9a6bcc4]:

To Artifact [d7025f1b94]:


    90     90   			# because the Makefile calls "$(TCLSH)".  We can't simply
    91     91   			# redefine TCLSH because it also uses TCLSH as a build target
    92     92   			sed 's@^$(TCLSH)@blah@' Makefile > Makefile.new
    93     93   			cat Makefile.new > Makefile
    94     94   			rm -f Makefile.new
    95     95   
    96     96   			${MAKE:-make} install TCLSH="../../../../../../../../../../../../../../../../../$(which "${TCLKIT:-tclkit}")"
           97  +		) || (
           98  +			# Make install can fail if cross-compiling using Tcl 8.5.9
           99  +			# because the Makefile calls "${TCL_EXE}".  We can't simply
          100  +			# redefine TCL_EXE because it also uses TCL_EXE as a build target
          101  +			sed 's@^${TCL_EXE}@blah@' Makefile > Makefile.new
          102  +			cat Makefile.new > Makefile
          103  +			rm -f Makefile.new
          104  +
          105  +			${MAKE:-make} install TCL_EXE="../../../../../../../../../../../../../../../../../$(which "${TCLKIT:-tclkit}")"
    97    106   		) || exit 1
    98    107   
    99    108   		mkdir "${OUTDIR}/lib" || exit 1
   100    109   		cp -r "${INSTDIR}/lib"/* "${OUTDIR}/lib/"
   101    110   		rm -rf "${OUTDIR}/lib/pkgconfig"
   102    111   		rm -f "${OUTDIR}"/lib/* >/dev/null 2>/dev/null
   103    112   		find "${OUTDIR}" -name '*.a' | xargs rm -f >/dev/null 2>/dev/null