clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 0f496c0 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
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # cross-lfs native gettext build
|
---|
4 | # ------------------------------
|
---|
5 | # $LastChangedBy$
|
---|
6 | # $LastChangedDate$
|
---|
7 | # $LastChangedRevision$
|
---|
8 | # $HeadURL$
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=gettext-native.log
|
---|
13 |
|
---|
14 | SELF=`basename ${0}`
|
---|
15 | set_buildenv
|
---|
16 | set_libdirname
|
---|
17 | setup_multiarch
|
---|
18 |
|
---|
19 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
20 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
21 | fi
|
---|
22 |
|
---|
23 | unpack_tarball gettext-${GETTEXT_VER} &&
|
---|
24 | cd ${PKGDIR}
|
---|
25 |
|
---|
26 | max_log_init Gettext ${GETTEXT_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
27 | CFLAGS="-O2 -pipe ${ARCH_CFLAGS} ${TGT_CFLAGS}" \
|
---|
28 | CXXFLAGS="-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 &&
|
---|
32 | echo " 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...
|
---|
38 | test -f gettext-runtime/libasprintf/libtool-ORIG ||
|
---|
39 | mv gettext-runtime/libasprintf/libtool gettext-runtime/libasprintf/libtool-ORIG
|
---|
40 | sed 's@^\(archive_cmds.*-shared \)\(.*predep_objects.*\)@\1 -nostartfiles -nostdlib \2@g' \
|
---|
41 | gettext-runtime/libasprintf/libtool-ORIG > gettext-runtime/libasprintf/libtool
|
---|
42 |
|
---|
43 | min_log_init ${BUILDLOGS} &&
|
---|
44 | #make ${PMFLAGS} LDFLAGS="-s" \
|
---|
45 | make LDFLAGS="-s" \
|
---|
46 | >> ${LOGFILE} 2>&1 &&
|
---|
47 | echo " o Build OK" || barf
|
---|
48 |
|
---|
49 | min_log_init ${TESTLOGS} &&
|
---|
50 | make check \
|
---|
51 | >> ${LOGFILE} 2>&1 &&
|
---|
52 | echo " o Test OK" || errmsg
|
---|
53 |
|
---|
54 | min_log_init ${INSTLOGS} &&
|
---|
55 | make install \
|
---|
56 | >> ${LOGFILE} 2>&1 &&
|
---|
57 | echo " o ALL OK" || barf
|
---|
58 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.