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:
977 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # cross-lfs target strace build
|
---|
4 | # -----------------------------
|
---|
5 | # $LastChangedBy$
|
---|
6 | # $LastChangedDate$
|
---|
7 | # $LastChangedRevision$
|
---|
8 | # $HeadURL$
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=strace-target.log
|
---|
13 |
|
---|
14 | set_libdirname
|
---|
15 | setup_multiarch
|
---|
16 |
|
---|
17 | if [ "${USE_SYSROOT}" = "Y" ]; then
|
---|
18 | BUILD_PREFIX=/usr
|
---|
19 | INSTALL_PREFIX="${LFS}${BUILD_PREFIX}"
|
---|
20 | INSTALL_OPTIONS="DESTDIR=${LFS}"
|
---|
21 | else
|
---|
22 | BUILD_PREFIX="${TGT_TOOLS}"
|
---|
23 | INSTALL_PREFIX="${TGT_TOOLS}"
|
---|
24 | INSTALL_OPTIONS=""
|
---|
25 | fi
|
---|
26 |
|
---|
27 | unpack_tarball strace-${STRACE_VER} &&
|
---|
28 | cd ${PKGDIR}
|
---|
29 |
|
---|
30 | max_log_init strace ${STRACE_VER} "target (shared)" ${CONFLOGS} ${LOG}
|
---|
31 | CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
|
---|
32 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
33 | ./configure --prefix=${BUILD_PREFIX} \
|
---|
34 | --host=${TARGET} \
|
---|
35 | >> ${LOGFILE} 2>&1 &&
|
---|
36 | echo " o Configure OK" &&
|
---|
37 |
|
---|
38 | min_log_init ${BUILDLOGS} &&
|
---|
39 | make ${PMFLAGS} LDFLAGS="-s" \
|
---|
40 | >> ${LOGFILE} 2>&1 &&
|
---|
41 | echo " o Build OK" &&
|
---|
42 |
|
---|
43 | min_log_init ${INSTLOGS} &&
|
---|
44 | make ${INSTALL_OPTIONS} install \
|
---|
45 | >> ${LOGFILE} 2>&1 &&
|
---|
46 | echo " o ALL OK" || barf
|
---|
Note:
See
TracBrowser
for help on using the repository browser.