source: scripts/scripts/target-scripts/target-tar.sh @ d7f7ff5

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since d7f7ff5 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 18 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100755
File size: 1.2 KB
Line 
1#!/bin/bash
2
3# cross-lfs target tar build
4# --------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=tar-target.log
13
14unpack_tarball tar-${TAR_VER}
15cd ${PKGDIR}
16
17set_libdirname
18setup_multiarch
19
20if [ "${USE_SYSROOT}" = "Y" ]; then
21   BUILD_PREFIX=/usr
22   INSTALL_PREFIX="${LFS}${BUILD_PREFIX}"
23   INSTALL_OPTIONS="DESTDIR=${LFS}"
24else
25   BUILD_PREFIX="${TGT_TOOLS}"
26   INSTALL_PREFIX="${TGT_TOOLS}"
27   INSTALL_OPTIONS=""
28fi
29
30case ${TAR_VER} in
31   1.13 )   apply_patch tar-${TAR_VER} ;;
32   1.15.1 ) apply_patch tar-1.15.1-sparse_fix-1 ;;
33esac
34
35# getline again
36echo "am_cv_func_working_getline=yes" > config.cache
37
38max_log_init Tar ${TAR_VER} "initial (shared)" ${CONFLOGS} ${LOG}
39CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
40AR="${TARGET}-ar" RANLIB="${TARGET}-ranlib" \
41CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
42./configure --prefix=${BUILD_PREFIX} \
43   --host=${TARGET} --cache-file=config.cache \
44   >> ${LOGFILE} 2>&1 &&
45echo " o Configure OK" &&
46
47min_log_init ${BUILDLOGS} &&
48make ${PMFLAGS} LDFLAGS="-s" \
49   >> ${LOGFILE} 2>&1 &&
50echo " o Build OK" &&
51
52min_log_init ${INSTLOGS} &&
53make ${INSTALL_OPTIONS} install \
54   >> ${LOGFILE} 2>&1 &&
55echo " o ALL OK" || barf
56
Note: See TracBrowser for help on using the repository browser.