view sources/native-builds/lfs-bootstrap/mnt/build/ncurses.sh @ 1269:7a60afa1846c

More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
author Rob Landley <rob@landley.net>
date Sun, 24 Oct 2010 04:17:15 -0500
parents
children
line wrap: on
line source

#!/bin/sh

[ ! -z "$(which c++)" ] && X="--without-cxx --without-cxx-binding"

./configure --prefix=/usr --with-shared --without-debug --enable-widec $X &&
make -j $CPUS &&
make install || exit 1

# Make sure various packages can find ncurses no matter what weird names
# they look for.

for lib in ncurses form panel menu
do
    ln -sf lib${lib}w.so /usr/lib/lib${lib}.so &&
    ln -sf lib${lib}w.a /usr/lib/lib${lib}.a || exit 1
done
ln -sf libncursesw.so libcursesw.so &&
ln -sf libncurses.so /usr/lib/libcurses.so &&
ln -sf libncursesw.a /usr/lib/libcursesw.a &&
ln -sf libncurses.a /usr/lib/libcurses.a || exit 1

if [ ! -z "$(which c++)" ]
then
  ln -sf libncurses++w.a /usr/lib/libncurses++.a || exit 1
fi