clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 1c9c5c3 was 1c9c5c3, checked in by Jim Gifford <clfs@…>, 19 years ago |
r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive
|
-
Property mode
set to
100755
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # cross-lfs target patch build
|
---|
4 | # ----------------------------
|
---|
5 | # $LastChangedBy$
|
---|
6 | # $LastChangedDate$
|
---|
7 | # $LastChangedRevision$
|
---|
8 | # $HeadURL$
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=patch-target.log
|
---|
13 |
|
---|
14 | unpack_tarball patch-${PATCH_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="prefix=${INSTALL_PREFIX}"
|
---|
24 | else
|
---|
25 | BUILD_PREFIX="${TGT_TOOLS}"
|
---|
26 | INSTALL_PREFIX="${TGT_TOOLS}"
|
---|
27 | INSTALL_OPTIONS=""
|
---|
28 | fi
|
---|
29 |
|
---|
30 | max_log_init Patch ${PATCH_VER} "target (shared)" ${CONFLOGS} ${LOG}
|
---|
31 | CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
|
---|
32 | AR="${TARGET}-ar" RANLIB="${TARGET}-ranlib" \
|
---|
33 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
34 | CPPFLAGS="-D_GNU_SOURCE" \
|
---|
35 | ./configure --prefix=${BUILD_PREFIX} --host=${TARGET} \
|
---|
36 | >> ${LOGFILE} 2>&1 &&
|
---|
37 | echo " o Configure OK" &&
|
---|
38 |
|
---|
39 | min_log_init ${BUILDLOGS} &&
|
---|
40 | make ${PMFLAGS} LDFLAGS="-s" \
|
---|
41 | >> ${LOGFILE} 2>&1 &&
|
---|
42 | echo " o Build OK" &&
|
---|
43 |
|
---|
44 | min_log_init ${INSTLOGS} &&
|
---|
45 | make ${INSTALL_OPTIONS} install \
|
---|
46 | >> ${LOGFILE} 2>&1 &&
|
---|
47 | echo " o ALL OK" || barf
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.