source: scripts/native-scripts/native-m4.sh@ 300656b

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 300656b 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.4 KB
Line 
1#!/bin/bash
2
3# cross-lfs native m4 build
4# -------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=m4-native.log
13
14set_libdirname
15setup_multiarch
16
17unpack_tarball m4-${M4_VER} &&
18cd ${PKGDIR}
19
20# NOTE: with gcc-3.4.0, linux-libc-headers-2.6.5.1 on
21# biarch x86_64-pc-linux-gnu the build barfed out with
22# errors in lib/regex.c due to conflicting types for
23# malloc. removed definitions of malloc/realloc and
24# made it so stlib.h always gets read.
25#
26# : same results with linux-libc-headers-2.6.6.0 with
27# gcc-3.4.1-20040620 on x86_64-pc-linux-gnu
28#
29# TODO: check if other architecturess are affected, and for what
30# glibc/gcc/m4 versions.
31#
32# : same issue w powerpc...
33#
34# Get a better fix for this....
35case ${TGT_ARCH} in
36 x86_64 | ppc | powerpc | powerpc64 )
37 apply_patch m4-1.4-regex_c-hack
38 ;;
39esac
40
41max_log_init M4 ${M4_VER} "native (shared)" ${CONFLOGS} ${LOG}
42CC="${CC-gcc} ${ARCH_CFLAGS}" \
43CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
44./configure --prefix=/usr \
45 >> ${LOGFILE} 2>&1 &&
46echo " o Configure OK" || barf
47
48min_log_init ${BUILDLOGS} &&
49make LDFLAGS="-s" \
50 >> ${LOGFILE} 2>&1 &&
51echo " o Build OK" || barf
52
53min_log_init ${TESTLOGS} &&
54make check \
55 >> ${LOGFILE} 2>&1 &&
56echo " o Test OK" || errmsg
57
58min_log_init ${INSTLOGS} &&
59make install \
60 >> ${LOGFILE} 2>&1 &&
61echo " o Install OK" || barf
62
Note: See TracBrowser for help on using the repository browser.