clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since e5345f18 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.1 KB
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | # cross-lfs native bison build
|
---|
| 4 | # ----------------------------
|
---|
| 5 | # $LastChangedBy$
|
---|
| 6 | # $LastChangedDate$
|
---|
| 7 | # $LastChangedRevision$
|
---|
| 8 | # $HeadURL$
|
---|
| 9 | #
|
---|
| 10 |
|
---|
| 11 | cd ${SRC}
|
---|
| 12 | LOG=bison-native.log
|
---|
| 13 |
|
---|
| 14 | set_libdirname
|
---|
| 15 | setup_multiarch
|
---|
| 16 |
|
---|
| 17 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 18 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
| 19 | fi
|
---|
| 20 |
|
---|
| 21 | unpack_tarball bison-${BISON_VER} &&
|
---|
| 22 | cd ${PKGDIR}
|
---|
| 23 |
|
---|
| 24 | max_log_init Bison ${BISON_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
| 25 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 26 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
| 27 | ./configure --prefix=/usr \
|
---|
| 28 | --host=${TARGET} ${extra_conf} \
|
---|
| 29 | --mandir=/usr/share/man --infodir=/usr/share/info \
|
---|
| 30 | >> ${LOGFILE} 2>&1 &&
|
---|
| 31 | echo " o Configure OK" || barf
|
---|
| 32 |
|
---|
| 33 | min_log_init ${BUILDLOGS} &&
|
---|
| 34 | make ${PMFLAGS} LDFLAGS="-s" \
|
---|
| 35 | >> ${LOGFILE} 2>&1 &&
|
---|
| 36 | echo " o Build OK" || barf
|
---|
| 37 |
|
---|
| 38 | min_log_init ${TESTLOGS} &&
|
---|
| 39 | make check \
|
---|
| 40 | >> ${LOGFILE} 2>&1 &&
|
---|
| 41 | echo " o Test OK" || errmsg
|
---|
| 42 |
|
---|
| 43 | min_log_init ${INSTLOGS} &&
|
---|
| 44 | make install \
|
---|
| 45 | >> ${LOGFILE} 2>&1 &&
|
---|
| 46 | echo " o Install OK" || barf
|
---|
| 47 |
|
---|
| 48 | test -f /usr/bin/yacc ||
|
---|
| 49 | cat > /usr/bin/yacc << "EOF"
|
---|
| 50 | #!/bin/sh
|
---|
| 51 | # Begin /usr/bin/yacc
|
---|
| 52 |
|
---|
| 53 | exec /usr/bin/bison -y "$@"
|
---|
| 54 |
|
---|
| 55 | # End /usr/bin/yacc
|
---|
| 56 | EOF
|
---|
| 57 |
|
---|
| 58 | chmod 755 /usr/bin/yacc
|
---|
Note:
See
TracBrowser
for help on using the repository browser.