clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
|
Last change
on this file since b51a30d was b51a30d, checked in by Jim Gifford <clfs@…>, 20 years ago |
r2510@server (orig r1249): ryan | 2006-03-10 02:08:27 -0800
r1299@rei: lfs | 2006-03-09 18:54:51 +1100
Apply gcc4 fixes patch
|
-
Property mode
set to
100755
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 |
|
|---|
| 3 | # cross-lfs target tar build
|
|---|
| 4 | # --------------------------
|
|---|
| 5 | # $LastChangedBy$
|
|---|
| 6 | # $LastChangedDate$
|
|---|
| 7 | # $LastChangedRevision$
|
|---|
| 8 | # $HeadURL$
|
|---|
| 9 | #
|
|---|
| 10 |
|
|---|
| 11 | cd ${SRC}
|
|---|
| 12 | LOG=tar-target.log
|
|---|
| 13 |
|
|---|
| 14 | unpack_tarball tar-${TAR_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 ${TAR_VER} in
|
|---|
| 31 | 1.13 ) apply_patch tar-${TAR_VER} ;;
|
|---|
| 32 | 1.15.1 ) apply_patch tar-1.15.1-sparse_fix-1
|
|---|
| 33 | apply_patch tar-1.15.1-gcc4_fix_tests ;;
|
|---|
| 34 | esac
|
|---|
| 35 |
|
|---|
| 36 | # getline again
|
|---|
| 37 | echo "am_cv_func_working_getline=yes" > config.cache
|
|---|
| 38 |
|
|---|
| 39 | max_log_init Tar ${TAR_VER} "initial (shared)" ${CONFLOGS} ${LOG}
|
|---|
| 40 | CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
|
|---|
| 41 | AR="${TARGET}-ar" RANLIB="${TARGET}-ranlib" \
|
|---|
| 42 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
|---|
| 43 | ./configure --prefix=${BUILD_PREFIX} \
|
|---|
| 44 | --host=${TARGET} --cache-file=config.cache \
|
|---|
| 45 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 46 | echo " o Configure OK" &&
|
|---|
| 47 |
|
|---|
| 48 | min_log_init ${BUILDLOGS} &&
|
|---|
| 49 | make ${PMFLAGS} LDFLAGS="-s" \
|
|---|
| 50 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 51 | echo " o Build OK" &&
|
|---|
| 52 |
|
|---|
| 53 | min_log_init ${INSTLOGS} &&
|
|---|
| 54 | make ${INSTALL_OPTIONS} install \
|
|---|
| 55 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 56 | echo " o ALL OK" || barf
|
|---|
| 57 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.