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