source: scripts/native-scripts/native-readline.sh@ 236a72e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 236a72e 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
11cd ${SRC}
12LOG=readline-native.log
13
14SELF=`basename ${0}`
15set_buildenv
16set_libdirname
17setup_multiarch
18if [ ! "${libdirname}" = "lib" ]; then
19 extra_conf="--libdir=/usr/${libdirname}"
20fi
21
22unpack_tarball readline-${READLINE_VER} &&
23cd ${PKGDIR}
24
25case ${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 ;;
29esac
30
31max_log_init readline ${READLINE_VER} "native (shared)" ${CONFLOGS} ${LOG}
32CC="${CC-gcc} ${ARCH_CFLAGS}" \
33CXX="${CXX-g++} ${ARCH_CFLAGS}" \
34./configure --prefix=/usr ${extra_conf} \
35 >> ${LOGFILE} 2>&1 &&
36echo " o Configure OK" &&
37
38min_log_init ${BUILDLOGS} &&
39make SHLIB_XLDFLAGS="-lncurses" \
40 >> ${LOGFILE} 2>&1 &&
41echo " o Build OK" &&
42
43min_log_init ${INSTLOGS} &&
44make install \
45 >> ${LOGFILE} 2>&1 &&
46echo " o ALL OK" || barf
47
48chmod 755 /usr/${libdirname}/*.${READLINE_VER} &&
49mv /usr/${libdirname}/lib{readline,history}.so.5* /${libdirname}
50ln -sf ../../${libdirname}/libhistory.so.5 /usr/${libdirname}/libhistory.so
51ln -sf ../../${libdirname}/libreadline.so.5 /usr/${libdirname}/libreadline.so
52
53/sbin/ldconfig
Note: See TracBrowser for help on using the repository browser.