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.3 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # cross-lfs native readline build
|
---|
4 | # -------------------------------
|
---|
5 | # $LastChangedBy$
|
---|
6 | # $LastChangedDate$
|
---|
7 | # $LastChangedRevision$
|
---|
8 | # $HeadURL$
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG=readline-native.log
|
---|
13 |
|
---|
14 | SELF=`basename ${0}`
|
---|
15 | set_buildenv
|
---|
16 | set_libdirname
|
---|
17 | setup_multiarch
|
---|
18 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
19 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
20 | fi
|
---|
21 |
|
---|
22 | unpack_tarball readline-${READLINE_VER} &&
|
---|
23 | cd ${PKGDIR}
|
---|
24 |
|
---|
25 | case ${READLINE_VER} in
|
---|
26 | 4.3 ) apply_patch readline-4.3-gnu_fixes-1 ;;
|
---|
27 | # Should be fixed next release
|
---|
28 | 5.0 ) apply_patch readline-5.0-fixes-1 ;;
|
---|
29 | esac
|
---|
30 |
|
---|
31 | max_log_init readline ${READLINE_VER} "native (shared)" ${CONFLOGS} ${LOG}
|
---|
32 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
33 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
34 | ./configure --prefix=/usr ${extra_conf} \
|
---|
35 | >> ${LOGFILE} 2>&1 &&
|
---|
36 | echo " o Configure OK" &&
|
---|
37 |
|
---|
38 | min_log_init ${BUILDLOGS} &&
|
---|
39 | make SHLIB_XLDFLAGS="-lncurses" \
|
---|
40 | >> ${LOGFILE} 2>&1 &&
|
---|
41 | echo " o Build OK" &&
|
---|
42 |
|
---|
43 | min_log_init ${INSTLOGS} &&
|
---|
44 | make install \
|
---|
45 | >> ${LOGFILE} 2>&1 &&
|
---|
46 | echo " o ALL OK" || barf
|
---|
47 |
|
---|
48 | chmod 755 /usr/${libdirname}/*.${READLINE_VER} &&
|
---|
49 | mv /usr/${libdirname}/lib{readline,history}.so.5* /${libdirname}
|
---|
50 | ln -sf ../../${libdirname}/libhistory.so.5 /usr/${libdirname}/libhistory.so
|
---|
51 | ln -sf ../../${libdirname}/libreadline.so.5 /usr/${libdirname}/libreadline.so
|
---|
52 |
|
---|
53 | /sbin/ldconfig
|
---|
Note:
See
TracBrowser
for help on using the repository browser.