source: scripts/target-scripts/target-nfsutils.sh@ 873009c

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.4 KB
RevLine 
[617118d]1#!/bin/bash
2
3# cross-lfs target nfs-utils build
4# --------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11# NOTE: rpc.* binaries aren't created, only standalone nfsd etc
12# I'm not too sure how we'd get rpcgen to work during a cross build
13
14cd ${SRC}
15LOG=nfsutils-target.log
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
30unpack_tarball nfs-utils-${NFSUTILS_VER} &&
31cd ${PKGDIR}
32
33max_log_init NFS-utils ${NFSUTILS_VER} "target (shared)" ${CONFLOGS} ${LOG}
34echo "ac_cv_func_malloc_0_nonnull=yes
35ac_cv_func_realloc_0_nonnull=yes" > config.cache
36
37CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
38CFLAGS="-O2 -pipe" \
39./configure --prefix=${BUILD_PREFIX} \
40 --host=${TARGET} \
41 --cache-file=config.cache \
42 >> ${LOGFILE} 2>&1 &&
43echo " o Configure OK" &&
44# --sysconfdir=/etc \
45
46# Target env clobbers makefile, unset
47unset TARGET
48
49# We cant use the newly built rpcgen when cross-compiling
50# HACK: use the hosts
51#RPCGEN=rpcgen \
52min_log_init ${BUILDLOGS} &&
53make \
54 >> ${LOGFILE} 2>&1 &&
55echo " o Build OK" &&
56
57min_log_init ${INSTLOGS} &&
58#su -c "export PATH=${PATH} ; make install" \
59make ${INSTALL_OPTIONS} install \
60 >> ${LOGFILE} 2>&1 &&
61echo " o ALL OK" || barf
62
Note: See TracBrowser for help on using the repository browser.