source: scripts/native-scripts/native-gettext.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.5 KB
RevLine 
[617118d]1#!/bin/bash
2
3# cross-lfs native gettext build
4# ------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=gettext-native.log
13
14SELF=`basename ${0}`
15set_buildenv
16set_libdirname
17setup_multiarch
18
19if [ ! "${libdirname}" = "lib" ]; then
20 extra_conf="--libdir=/usr/${libdirname}"
21fi
22
23unpack_tarball gettext-${GETTEXT_VER} &&
24cd ${PKGDIR}
25
26max_log_init Gettext ${GETTEXT_VER} "native (shared)" ${CONFLOGS} ${LOG}
27CFLAGS="-O2 -pipe ${ARCH_CFLAGS} ${TGT_CFLAGS}" \
28CXXFLAGS="-O2 -pipe ${ARCH_CFLAGS} ${TGT_CFLAGS}" \
29 ./configure --prefix=/usr \
30 --mandir=/usr/share/man --infodir=/usr/share/info ${extra_conf} \
31 >> ${LOGFILE} 2>&1 &&
32echo " o Configure OK" &&
33
34# libtool is a pain.
35# with libasprintf it tries to link in the startfiles even though
36# g++ will look after this itself. This is a hack, should really edit
37# ltmain.sh...
38test -f gettext-runtime/libasprintf/libtool-ORIG ||
39 mv gettext-runtime/libasprintf/libtool gettext-runtime/libasprintf/libtool-ORIG
40sed 's@^\(archive_cmds.*-shared \)\(.*predep_objects.*\)@\1 -nostartfiles -nostdlib \2@g' \
41gettext-runtime/libasprintf/libtool-ORIG > gettext-runtime/libasprintf/libtool
42
43min_log_init ${BUILDLOGS} &&
44#make ${PMFLAGS} LDFLAGS="-s" \
45make LDFLAGS="-s" \
46 >> ${LOGFILE} 2>&1 &&
47echo " o Build OK" || barf
48
49min_log_init ${TESTLOGS} &&
50make check \
51 >> ${LOGFILE} 2>&1 &&
52echo " o Test OK" || errmsg
53
54min_log_init ${INSTLOGS} &&
55make install \
56 >> ${LOGFILE} 2>&1 &&
57echo " o ALL OK" || barf
58
Note: See TracBrowser for help on using the repository browser.