source: scripts/native-scripts/temp-tcl.sh@ 873009c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 873009c was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.6 KB
RevLine 
[617118d]1#!/bin/bash
2
3# cross-lfs temporary tcl build (for running testsuites)
4# ------------------------------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=tcl-temp.log
13
14# Test if the 64 script has been called.
15# This should only really get called during bi-arch builds
16SELF=`basename ${0}`
17set_buildenv
18set_libdirname
19setup_multiarch
20
21if [ "${USE_SYSROOT}" = "Y" ]; then
22 BUILD_PREFIX=/usr
23else
24 BUILD_PREFIX=${TGT_TOOLS}
25fi
26
27unpack_tarball tcl${TCL_VER}-src &&
28cd ${PKGDIR}/unix
29
30if [ ! "${libdirname}" = "lib" ]; then
31 extra_conf="--libdir=${BUILD_PREFIX}/${libdirname}"
32
33 # Change TCL_LIBRARY in Makefile so it is under $(libdir)
34 test -f Makefile.in-ORIG || cp -p Makefile.in Makefile.in-ORIG
35 sed '/TCL_LIBRARY/s@\$(prefix)/lib@$(libdir)@g' \
36 Makefile.in-ORIG > Makefile.in
37fi
38
39max_log_init Tcl ${TCL_VER} "temp (shared)" ${CONFLOGS} ${LOG}
40CC="${CC-gcc} ${ARCH_CFLAGS}" \
41./configure --prefix=${BUILD_PREFIX} ${extra_conf} \
42 >> ${LOGFILE} 2>&1 &&
43echo " o Configure OK" &&
44
45min_log_init ${BUILDLOGS} &&
46make ${PMFLAGS} LDFLAGS="-s" \
47 >> ${LOGFILE} 2>&1 &&
48echo " o Build OK" &&
49
50min_log_init ${TESTLOGS} &&
51make test \
52 >> ${LOGFILE} 2>&1 &&
53echo " o Test OK" &&
54# clock test may fail... not a real concern for our purposes...
55
56min_log_init ${INSTLOGS} &&
57make install \
58 >> ${LOGFILE} 2>&1 &&
59echo " o ALL OK" || barf
60
61# Create symlink for tclsh
62TCLSH=$(basename $(find ${BUILD_PREFIX}/bin -type f -name tclsh\*))
63test "tclsh" != "${TCLSH}" &&
64 ln -sf ./${TCLSH} ${BUILD_PREFIX}/bin/tclsh
65
Note: See TracBrowser for help on using the repository browser.