clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 834dec0 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 bison build
|
---|
| 4 | # ----------------------------
|
---|
| 5 | # $LastChangedBy$
|
---|
| 6 | # $LastChangedDate$
|
---|
| 7 | # $LastChangedRevision$
|
---|
| 8 | # $HeadURL$
|
---|
| 9 | #
|
---|
| 10 |
|
---|
| 11 | cd ${SRC}
|
---|
| 12 | LOG=bison-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 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 28 | extra_conf="--libdir=${BUILD_PREFIX}/${libdirname}"
|
---|
| 29 | fi
|
---|
| 30 |
|
---|
| 31 | unpack_tarball bison-${BISON_VER} &&
|
---|
| 32 | cd ${PKGDIR}
|
---|
| 33 |
|
---|
| 34 | max_log_init Bison ${BISON_VER} "target (shared)" ${CONFLOGS} ${LOG}
|
---|
| 35 | CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
|
---|
| 36 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
| 37 | ./configure --prefix=${BUILD_PREFIX} \
|
---|
| 38 | --host=${TARGET} ${extra_conf} \
|
---|
| 39 | >> ${LOGFILE} 2>&1 &&
|
---|
| 40 | echo " o Configure OK" &&
|
---|
| 41 |
|
---|
| 42 | min_log_init ${BUILDLOGS} &&
|
---|
| 43 | make ${PMFLAGS} LDFLAGS="-s" \
|
---|
| 44 | >> ${LOGFILE} 2>&1 &&
|
---|
| 45 | echo " o Build OK" &&
|
---|
| 46 |
|
---|
| 47 | min_log_init ${INSTLOGS} &&
|
---|
| 48 | make ${INSTALL_OPTIONS} install \
|
---|
| 49 | >> ${LOGFILE} 2>&1 &&
|
---|
| 50 | echo " o ALL OK" || barf
|
---|
| 51 |
|
---|
| 52 | test -f ${INSTALL_PREFIX}/bin/yacc ||
|
---|
| 53 | cat > ${INSTALL_PREFIX}/bin/yacc << "EOF"
|
---|
| 54 | #!/bin/sh
|
---|
| 55 | # Begin ${BUILD_PREFIX}/bin/yacc
|
---|
| 56 |
|
---|
| 57 | exec ${BUILD_PREFIX}/bin/bison -y "$@"
|
---|
| 58 |
|
---|
| 59 | # End ${BUILD_PREFIX}/bin/yacc
|
---|
| 60 | EOF
|
---|
| 61 |
|
---|
| 62 | chmod 755 ${INSTALL_PREFIX}/bin/yacc
|
---|
Note:
See
TracBrowser
for help on using the repository browser.