clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 0ee931e 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
|
Line | |
---|
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 |
|
---|
14 | cd ${SRC}
|
---|
15 | LOG=nfsutils-target.log
|
---|
16 |
|
---|
17 | set_libdirname
|
---|
18 | setup_multiarch
|
---|
19 |
|
---|
20 | if [ "${USE_SYSROOT}" = "Y" ]; then
|
---|
21 | BUILD_PREFIX=/usr
|
---|
22 | INSTALL_PREFIX="${LFS}${BUILD_PREFIX}"
|
---|
23 | INSTALL_OPTIONS="DESTDIR=${LFS}"
|
---|
24 | else
|
---|
25 | BUILD_PREFIX="${TGT_TOOLS}"
|
---|
26 | INSTALL_PREFIX="${TGT_TOOLS}"
|
---|
27 | INSTALL_OPTIONS=""
|
---|
28 | fi
|
---|
29 |
|
---|
30 | unpack_tarball nfs-utils-${NFSUTILS_VER} &&
|
---|
31 | cd ${PKGDIR}
|
---|
32 |
|
---|
33 | max_log_init NFS-utils ${NFSUTILS_VER} "target (shared)" ${CONFLOGS} ${LOG}
|
---|
34 | echo "ac_cv_func_malloc_0_nonnull=yes
|
---|
35 | ac_cv_func_realloc_0_nonnull=yes" > config.cache
|
---|
36 |
|
---|
37 | CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
|
---|
38 | CFLAGS="-O2 -pipe" \
|
---|
39 | ./configure --prefix=${BUILD_PREFIX} \
|
---|
40 | --host=${TARGET} \
|
---|
41 | --cache-file=config.cache \
|
---|
42 | >> ${LOGFILE} 2>&1 &&
|
---|
43 | echo " o Configure OK" &&
|
---|
44 | # --sysconfdir=/etc \
|
---|
45 |
|
---|
46 | # Target env clobbers makefile, unset
|
---|
47 | unset TARGET
|
---|
48 |
|
---|
49 | # We cant use the newly built rpcgen when cross-compiling
|
---|
50 | # HACK: use the hosts
|
---|
51 | #RPCGEN=rpcgen \
|
---|
52 | min_log_init ${BUILDLOGS} &&
|
---|
53 | make \
|
---|
54 | >> ${LOGFILE} 2>&1 &&
|
---|
55 | echo " o Build OK" &&
|
---|
56 |
|
---|
57 | min_log_init ${INSTLOGS} &&
|
---|
58 | #su -c "export PATH=${PATH} ; make install" \
|
---|
59 | make ${INSTALL_OPTIONS} install \
|
---|
60 | >> ${LOGFILE} 2>&1 &&
|
---|
61 | echo " o ALL OK" || barf
|
---|
62 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.