source: scripts_home/scripts/target-scripts/target-findutils.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: 1.2 KB
Line 
1#!/bin/bash
2
3# cross-lfs target findutils build
4# --------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=findutils-target.log
13
14unpack_tarball findutils-${FINDUTILS_VER} &&
15
16set_libdirname
17setup_multiarch
18
19if [ "${USE_SYSROOT}" = "Y" ]; then
20 BUILD_PREFIX=/usr
21 INSTALL_PREFIX="${LFS}${BUILD_PREFIX}"
22 INSTALL_OPTIONS="DESTDIR=${LFS}"
23else
24 BUILD_PREFIX=${TGT_TOOLS}
25 INSTALL_PREFIX="${TGT_TOOLS}"
26 INSTALL_OPTIONS=""
27fi
28
29cd ${PKGDIR}
30test 4.1 = "${FINDUTILS_VER}" &&
31 apply_patch findutils-${FINDUTILS_VER}
32
33echo "am_cv_func_working_getline=yes" >> config.cache
34
35# TODO: had to hack config.sub so it accepted powerpc64...
36# come up with a check and a hack here...
37max_log_init Findutils ${FINDUTILS_VER} "target (shared)" ${CONFLOGS} ${LOG}
38CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
39CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
40./configure --prefix=${BUILD_PREFIX} \
41 --host=${TARGET} --cache-file=config.cache \
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" || barf
49
50min_log_init ${INSTLOGS} &&
51make ${INSTALL_OPTIONS} install \
52 >> ${LOGFILE} 2>&1 &&
53echo " o install OK" || barf
54
Note: See TracBrowser for help on using the repository browser.