source: scripts_home/scripts/target-scripts/target-diffutils.sh@ 1c9c5c3

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

r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive

  • Property mode set to 100755
File size: 996 bytes
RevLine 
[617118d]1#!/bin/bash
2
3# cross-lfs target diffutils build
4# --------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=diffutils-target.log
13
14unpack_tarball diffutils-${DIFFUTILS_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
30max_log_init Diffutils ${DIFFUTILS_VER} "target (shared)" ${CONFLOGS} ${LOG}
31CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
32CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
33./configure --prefix=${BUILD_PREFIX} \
34 --host=${TARGET} \
35 >> ${LOGFILE} 2>&1 &&
36echo " o Configure OK" &&
37
38min_log_init ${BUILDLOGS} &&
39make ${PMFLAGS} LDFLAGS="-s" \
40 >> ${LOGFILE} 2>&1 &&
41echo " o Build OK" &&
42
43min_log_init ${INSTLOGS} &&
44make ${INSTALL_OPTIONS} install \
45 >> ${LOGFILE} 2>&1 &&
46echo " o ALL OK" || barf
Note: See TracBrowser for help on using the repository browser.