diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 7309c6e7f..26c2bfd22 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -45,6 +45,11 @@ 2020-04-19 + + [pierre] - Prevent readline.pc from referencing termcap as + a private library by adding --with-curses to configure switches. + Fixes #4635. + [pierre] - Allow bison to use the libtextstyle.so library from gettext, by moving gettext before bison. Fixes diff --git a/chapter06/readline.xml b/chapter06/readline.xml index 7f5b2191a..bcefab042 100644 --- a/chapter06/readline.xml +++ b/chapter06/readline.xml @@ -53,8 +53,24 @@ sed -i '/{OLDSUFF}/c:' support/shlib-install ./configure --prefix=/usr \ --disable-static \ + --with-curses \ --docdir=/usr/share/doc/readline-&readline-version; + + The meaning of the configure option: + + + --with-curses" + + This option tells Readline that it can find the termcap + library functions in the curses library, rather than a separate + termcap library. It allows generating a correct + readline.pc file. + + + + + Compile the package: make SHLIB_LIBS="-L/tools/lib -lncursesw"