clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 60454e2 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.1 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # cross-lfs target procps build
|
---|
4 | # -----------------------------
|
---|
5 | # $LastChangedBy$
|
---|
6 | # $LastChangedDate$
|
---|
7 | # $LastChangedRevision$
|
---|
8 | # $HeadURL$
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=sed-target.log
|
---|
13 |
|
---|
14 | unpack_tarball sed-${SED_VER} &&
|
---|
15 | cd ${PKGDIR}
|
---|
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 | case ${SED_VER} in
|
---|
31 | 4.1 )
|
---|
32 | # when sed'ing in-place the target files permissions are changed
|
---|
33 | # this fixes this behaviour
|
---|
34 | apply_patch sed-4.1-permissions-1
|
---|
35 | ;;
|
---|
36 | esac
|
---|
37 |
|
---|
38 | max_log_init Sed ${SED_VER} "target (shared)" ${CONFLOGS} ${LOG}
|
---|
39 | CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
|
---|
40 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
41 | ./configure --prefix=${BUILD_PREFIX} \
|
---|
42 | --host=${TARGET} \
|
---|
43 | >> ${LOGFILE} 2>&1 &&
|
---|
44 | echo " o Configure OK" &&
|
---|
45 |
|
---|
46 | min_log_init ${BUILDLOGS} &&
|
---|
47 | make ${PMFLAGS} LDFLAGS="-s" \
|
---|
48 | >> ${LOGFILE} 2>&1 &&
|
---|
49 | echo " o Build OK" &&
|
---|
50 |
|
---|
51 | min_log_init ${INSTLOGS} &&
|
---|
52 | make ${INSTALL_OPTIONS} install \
|
---|
53 | >> ${LOGFILE} 2>&1 &&
|
---|
54 | echo " o ALL OK" || barf
|
---|
55 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.