source: scripts/scripts/native-scripts/native-readline.sh @ 46f79ff

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 46f79ff was 46f79ff, checked in by Jim Gifford <clfs@…>, 15 years ago

r2511@server (orig r1250): ryan | 2006-03-10 02:08:45 -0800

r1300@rei: lfs | 2006-03-09 18:59:02 +1100
Add readline-5.1-fixes-2.patch
------------------------------
Submitted By: Jim Gifford (patches at jg555 dot com)
Date: 2006-02-06
Initial Package Version: 5.1
Origin: Upstream
Upstream Status: Applied
Description: Contains Patch 001-002 from Upstream



  • 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   5.0 ) apply_patch readline-5.0-fixes-1 ;;
28   5.1 ) apply_patch readline-5.1-fixes-2 ;;
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.