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
|
Rev | Line | |
---|
[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 |
|
---|
| 11 | cd ${SRC}
|
---|
| 12 | LOG=tcl-temp.log
|
---|
| 13 |
|
---|
| 14 | # Test if the 64 script has been called.
|
---|
| 15 | # This should only really get called during bi-arch builds
|
---|
| 16 | SELF=`basename ${0}`
|
---|
| 17 | set_buildenv
|
---|
| 18 | set_libdirname
|
---|
| 19 | setup_multiarch
|
---|
| 20 |
|
---|
| 21 | if [ "${USE_SYSROOT}" = "Y" ]; then
|
---|
| 22 | BUILD_PREFIX=/usr
|
---|
| 23 | else
|
---|
| 24 | BUILD_PREFIX=${TGT_TOOLS}
|
---|
| 25 | fi
|
---|
| 26 |
|
---|
| 27 | unpack_tarball tcl${TCL_VER}-src &&
|
---|
| 28 | cd ${PKGDIR}/unix
|
---|
| 29 |
|
---|
| 30 | if [ ! "${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
|
---|
| 37 | fi
|
---|
| 38 |
|
---|
| 39 | max_log_init Tcl ${TCL_VER} "temp (shared)" ${CONFLOGS} ${LOG}
|
---|
| 40 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 41 | ./configure --prefix=${BUILD_PREFIX} ${extra_conf} \
|
---|
| 42 | >> ${LOGFILE} 2>&1 &&
|
---|
| 43 | echo " o Configure OK" &&
|
---|
| 44 |
|
---|
| 45 | min_log_init ${BUILDLOGS} &&
|
---|
| 46 | make ${PMFLAGS} LDFLAGS="-s" \
|
---|
| 47 | >> ${LOGFILE} 2>&1 &&
|
---|
| 48 | echo " o Build OK" &&
|
---|
| 49 |
|
---|
| 50 | min_log_init ${TESTLOGS} &&
|
---|
| 51 | make test \
|
---|
| 52 | >> ${LOGFILE} 2>&1 &&
|
---|
| 53 | echo " o Test OK" &&
|
---|
| 54 | # clock test may fail... not a real concern for our purposes...
|
---|
| 55 |
|
---|
| 56 | min_log_init ${INSTLOGS} &&
|
---|
| 57 | make install \
|
---|
| 58 | >> ${LOGFILE} 2>&1 &&
|
---|
| 59 | echo " o ALL OK" || barf
|
---|
| 60 |
|
---|
| 61 | # Create symlink for tclsh
|
---|
| 62 | TCLSH=$(basename $(find ${BUILD_PREFIX}/bin -type f -name tclsh\*))
|
---|
| 63 | test "tclsh" != "${TCLSH}" &&
|
---|
| 64 | ln -sf ./${TCLSH} ${BUILD_PREFIX}/bin/tclsh
|
---|
| 65 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.