Diff

Differences From Artifact [5c0e5e63d0]:

To Artifact [6599bcea65]:


    60     60   
    61     61   		cd "${BUILDDIR}/${dir}" || exit 1
    62     62   
    63     63   		./configure --disable-shared --prefix="${INSTDIR}" ${CONFIGUREEXTRA}
    64     64   
    65     65   		${MAKE:-make} || continue
    66     66   
    67         -		${MAKE:-make} install
           67  +		${MAKE:-make} install || (
           68  +			# Work with Tcl 8.6.x's TCLSH_NATIVE solution for
           69  +			# cross-compile installs
           70  +
           71  +			${MAKE:-make} install TCLSH_NATIVE="${TCLKIT:-tclkit}"
           72  +		) || (
           73  +			# Make install can fail if cross-compiling using Tcl 8.5.x
           74  +			# because the Makefile calls "$(TCLSH)".  We can't simply
           75  +			# redefine TCLSH because it also uses TCLSH as a build target
           76  +			sed 's@^$(TCLSH)@blah@' Makefile > Makefile.new
           77  +			cat Makefile.new > Makefile
           78  +			rm -f Makefile.new
           79  +
           80  +			${MAKE:-make} install TCLSH="../../../../../../../../../../../../../../../../../$(which "${TCLKIT:-tclkit}")"
           81  +		)
    68     82   
    69     83   		mkdir "${OUTDIR}/lib" || exit 1
    70     84   		cp -r "${INSTDIR}/lib"/* "${OUTDIR}/lib/"
    71     85   		rm -rf "${OUTDIR}/lib/pkgconfig"
    72     86   		rm -f "${OUTDIR}"/lib/* >/dev/null 2>/dev/null
    73     87   		find "${OUTDIR}" -name '*.a' | xargs rm -f >/dev/null 2>/dev/null
    74     88   
    75     89   		break
    76     90   	done
    77     91   ) || exit 1
    78     92   
    79     93   exit 0