aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/ncurses.xml
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2013-01-30 20:28:37 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2013-01-30 20:28:37 +0000
commitc0220ed5ba7ba1e225c98fa61ada101103548bf3 (patch)
tree14ed642c199a7749320b927362f58659bddadff9 /chapter06/ncurses.xml
parent1105cc6216127a7554eb35e590a7077922264ce4 (diff)
Change ncurses instructions to create and install .pc files.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10113 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/ncurses.xml')
-rw-r--r--chapter06/ncurses.xml24
1 files changed, 13 insertions, 11 deletions
diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml
index 47dd473ba..ab9ba7dd3 100644
--- a/chapter06/ncurses.xml
+++ b/chapter06/ncurses.xml
@@ -57,6 +57,7 @@
--mandir=/usr/share/man \
--with-shared \
--without-debug \
+ --enable-pc-files \
--enable-widec</userinput></screen>
<variablelist>
@@ -76,16 +77,13 @@
</listitem>
</varlistentry>
- <!--
<varlistentry>
- <term><parameter>- -without-cxx-binding</parameter></term>
+ <term><parameter>--enable-pc-files</parameter></term>
<listitem>
- <para>This optional switch causes the
- <filename class="libraryfile">libncurses++w.a</filename> library
- not to be built. Nothing in LFS and BLFS uses this library.</para>
+ <para>This switch generates and installs .pc files for pkg-config.
+ </para>
</listitem>
</varlistentry>
- -->
</variablelist>
@@ -119,9 +117,10 @@
wide-character libraries by means of symlinks and linker scripts:</para>
<screen><userinput remap="install">for lib in ncurses form panel menu ; do
- rm -vf /usr/lib/lib${lib}.so
- echo "INPUT(-l${lib}w)" &gt;/usr/lib/lib${lib}.so
- ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a
+ rm -vf /usr/lib/lib${lib}.so
+ echo "INPUT(-l${lib}w)" &gt; /usr/lib/lib${lib}.so
+ ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a
+ ln -sfv ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc
done
ln -sfv libncurses++w.a /usr/lib/libncurses++.a</userinput></screen>
@@ -149,8 +148,11 @@ cp -v -R doc/* /usr/share/doc/ncurses-&ncurses-version;</userinput></screen>
the package again with the following commands:</para>
<screen role="nodump"><userinput>make distclean
-./configure --prefix=/usr --with-shared --without-normal \
- --without-debug --without-cxx-binding
+./configure --prefix=/usr \
+ --with-shared \
+ --without-normal \
+ --without-debug \
+ --without-cxx-binding
make sources libs
cp -av lib/lib*.so.5* /usr/lib</userinput></screen>
</note>