Differences From Artifact [5c0e5e63d0]:
- Executable file tcl/build.sh — part of check-in [e3565593fd] at 2010-09-26 04:39:59 on branch trunk — Updated to clean up archive files after installation (user: rkeene, size: 1719) [annotate] [blame] [check-ins using]
To Artifact [6599bcea65]:
- Executable file
tcl/build.sh
— part of check-in
[b84f59e5de]
at
2010-09-26 04:40:31
on branch trunk
— Fixed issue with Tcl 8.5 and up cross-compile installation
Fixed check for no Tk libs to exclude stubs in the check, but include it in the linking (user: rkeene, size: 2283) [annotate] [blame] [check-ins using]
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