Armin K. wrote:
> On 01/30/2013 12:27 AM, Bruce Dubbs wrote:
>> Randy McMurchy wrote:
>>> Bruce Dubbs wrote these words on 01/29/13 16:57 CST:
>>>> Can you please post
>>>>
>>>> $ ls destdir/usr/lib/pkgconfig/*
>>>
>>> LOL. Though not necessary as the names of the files are in the "name"
>>> field of each of the files I posted, here is an ls.
>>>
>>> rml@rmlinux: ~/build/ncurses-5.9 > ls -l destdir/usr/lib/pkgconfig/*
>>> -rw-r--r-- 1 rml install 243 Jan 29 16:30 destdir/usr/lib/pkgconfig/formw.pc
>>> -rw-r--r-- 1 rml install 243 Jan 29 16:30 destdir/usr/lib/pkgconfig/menuw.pc
>>> -rw-r--r-- 1 rml install 272 Jan 29 16:30
>>> destdir/usr/lib/pkgconfig/ncurses++w.pc
>>> -rw-r--r-- 1 rml install 235 Jan 29 16:30
>>> destdir/usr/lib/pkgconfig/ncursesw.pc
>>> -rw-r--r-- 1 rml install 245 Jan 29 16:30
>>> destdir/usr/lib/pkgconfig/panelw.pc
>>
>> OK, I verified your observation. I'll add the --enable-pc-files switch.
> I'd also recommend that you add symlinks as you do for libraries (form
> -> formw, menu -> menuw, etc).
This is what I have right now, but want to post it for comment.
./configure --prefix=/usr \
--mandir=/usr/share/man \
--with-shared \
--without-debug \
# Added this line
--enable-pc-files \
--enable-widec
make
make install
mv -v /usr/lib/libncursesw.so.5* /lib
ln -sfv ../../lib/libncursesw.so.5 /usr/lib/libncursesw.so
for lib in ncurses form panel menu ; do
rm -vf /usr/lib/lib${lib}.so
echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so
ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a
# Added this line for non-wide .pc files
# Note that it does not create a ncurses++.pc file since
# it's not made for the non-wide build
ln -sfv ${lib}w /usr/lib/pkgconfig/${lib}.pc
done
ln -sfv libncurses++w.a /usr/lib/libncurses++.a
rm -vf /usr/lib/libcursesw.so
echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so
ln -sfv libncurses.so /usr/lib/libcurses.so
ln -sfv libncursesw.a /usr/lib/libcursesw.a
ln -sfv libncurses.a /usr/lib/libcurses.a
mkdir -v /usr/share/doc/ncurses-5.9
cp -v -R doc/* /usr/share/doc/ncurses-5.9
# Note for non-wide build
make distclean
./configure --prefix=/usr \
--with-shared \
--without-normal \
--without-debug \
--without-cxx-binding
make sources libs
cp -av lib/lib*.so.5* /usr/lib
pushd misc
sh gen-pkgconfig
cp -v --remove-destination *.pc /usr/lib/pkgconfig
popd
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page