clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 0fd3a9e 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.3 KB
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | # cross-lfs target grep build
|
---|
| 4 | # ---------------------------
|
---|
| 5 | # $LastChangedBy$
|
---|
| 6 | # $LastChangedDate$
|
---|
| 7 | # $LastChangedRevision$
|
---|
| 8 | # $HeadURL$
|
---|
| 9 | #
|
---|
| 10 |
|
---|
| 11 | cd ${SRC}
|
---|
| 12 | LOG=gzip-target.log
|
---|
| 13 |
|
---|
| 14 | unpack_tarball gzip-${GZIP_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 | # Configure isn't setup to use ${TARGET}-nm for a test... fix it
|
---|
| 31 | test -f configure-ORIG ||
|
---|
| 32 | mv configure configure-ORIG
|
---|
| 33 |
|
---|
| 34 | sed "s@nm conftest@${TARGET}-&@" configure-ORIG > configure
|
---|
| 35 | chmod 755 configure
|
---|
| 36 |
|
---|
| 37 | max_log_init Gzip ${GZIP_VER} "target (shared)" ${CONFLOGS} ${LOG}
|
---|
| 38 | CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
|
---|
| 39 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
| 40 | ./configure --prefix=${BUILD_PREFIX} \
|
---|
| 41 | --host=${TARGET} \
|
---|
| 42 | >> ${LOGFILE} 2>&1 &&
|
---|
| 43 | echo " o Configure OK" &&
|
---|
| 44 |
|
---|
| 45 | min_log_init ${BUILDLOGS} &&
|
---|
| 46 | make ${PMFLAGS} LDFLAGS="-s" \
|
---|
| 47 | >> ${LOGFILE} 2>&1 &&
|
---|
| 48 | echo " o Build OK" &&
|
---|
| 49 |
|
---|
| 50 | min_log_init ${INSTLOGS} &&
|
---|
| 51 | make ${INSTALL_OPTIONS} install \
|
---|
| 52 | >> ${LOGFILE} 2>&1 &&
|
---|
| 53 | echo " o ALL OK" || barf
|
---|
| 54 |
|
---|
| 55 | rm -f ${INSTALL_PREFIX}/bin/{gunzip,zcat}
|
---|
| 56 | ln -sf gzip ${INSTALL_PREFIX}/bin/gunzip
|
---|
| 57 | ln -sf gzip ${INSTALL_PREFIX}/bin/zcat
|
---|
| 58 | ln -sf gunzip ${INSTALL_PREFIX}/bin/uncompress
|
---|
Note:
See
TracBrowser
for help on using the repository browser.