source: scripts/native-scripts/native-bison.sh@ 873009c

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