clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
|
Last change
on this file since 61c0e64 was 617118d, checked in by Jim Gifford <clfs@…>, 20 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 |
|
|---|
| 11 | cd ${SRC}
|
|---|
| 12 | LOG=m4-native.log
|
|---|
| 13 |
|
|---|
| 14 | set_libdirname
|
|---|
| 15 | setup_multiarch
|
|---|
| 16 |
|
|---|
| 17 | unpack_tarball m4-${M4_VER} &&
|
|---|
| 18 | cd ${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....
|
|---|
| 35 | case ${TGT_ARCH} in
|
|---|
| 36 | x86_64 | ppc | powerpc | powerpc64 )
|
|---|
| 37 | apply_patch m4-1.4-regex_c-hack
|
|---|
| 38 | ;;
|
|---|
| 39 | esac
|
|---|
| 40 |
|
|---|
| 41 | max_log_init M4 ${M4_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
|---|
| 42 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
|---|
| 43 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
|---|
| 44 | ./configure --prefix=/usr \
|
|---|
| 45 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 46 | echo " o Configure OK" || barf
|
|---|
| 47 |
|
|---|
| 48 | min_log_init ${BUILDLOGS} &&
|
|---|
| 49 | make LDFLAGS="-s" \
|
|---|
| 50 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 51 | echo " o Build OK" || barf
|
|---|
| 52 |
|
|---|
| 53 | min_log_init ${TESTLOGS} &&
|
|---|
| 54 | make check \
|
|---|
| 55 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 56 | echo " o Test OK" || errmsg
|
|---|
| 57 |
|
|---|
| 58 | min_log_init ${INSTLOGS} &&
|
|---|
| 59 | make install \
|
|---|
| 60 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 61 | echo " o Install OK" || barf
|
|---|
| 62 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.