MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« File 32-bit HOME GNU Readline 32-bit »

GNU Readline 64-bit

Name: GNU Readline 64-bit
Summary: Libraries for command-line editing and history
License: GPL v3 or later
Version: 8.3
URL: https://ftp.gnu.org/gnu/readline/readline-8.3.tar.gz

Average Build Time: less than 0.1 SBU
Used Install Space: 17 MiB

Preparation

There are a couple of extra steps required to ensure that GNU Readline will install correctly:

sed -i '/MV.*old/d' Makefile.in
sed -i '/{OLDSUFF}/c:' support/shlib-install
sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf

Configuration

To configure GNU Readline 64-bit for install into the build root, run the following command:

./configure --prefix=/usr           \
            --libdir=/usr/lib64     \
            --libexecdir=/usr/lib64 \
            --disable-static        \
            --with-curses           \
            --docdir=/usr/share/doc/readline-8.3

Compilation and Installation

To compile GNU Readline 64-bit, run the following command:

make SHLIB_LIBS="-lncursesw"

Finally, to install GNU Readline 64-bit into the build tree, run the following command:

make install
install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-8.3

NOTE: Do not delete the unpacked sources

Contents

Contents  
Installed Programs N/A
Installed Libraries libhistory.so and libreadline.so
Installed Directories /usr/include/readline, /usr/share/doc/readline-8.3
Navigation    
« File 32-bit HOME GNU Readline 32-bit »