Mercurial > hg > control-images
comparison images/lfs-bootstrap/mnt/build/ncurses.sh @ 0:bcd2e358d57f
Start by copying the existing control image building infrastructure from Aboriginal Linux, and shuffling the layout around a bit.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 03 Jul 2011 17:23:26 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bcd2e358d57f |
---|---|
1 #!/bin/sh | |
2 | |
3 [ ! -z "$(which c++)" ] && X="--without-cxx --without-cxx-binding" | |
4 | |
5 ./configure --prefix=/usr --with-shared --without-debug --enable-widec $X && | |
6 make -j $CPUS && | |
7 make install || exit 1 | |
8 | |
9 # Make sure various packages can find ncurses no matter what weird names | |
10 # they look for. | |
11 | |
12 for lib in ncurses form panel menu | |
13 do | |
14 ln -sf lib${lib}w.so /usr/lib/lib${lib}.so && | |
15 ln -sf lib${lib}w.a /usr/lib/lib${lib}.a || exit 1 | |
16 done | |
17 ln -sf libncursesw.so libcursesw.so && | |
18 ln -sf libncurses.so /usr/lib/libcurses.so && | |
19 ln -sf libncursesw.a /usr/lib/libcursesw.a && | |
20 ln -sf libncurses.a /usr/lib/libcurses.a || exit 1 | |
21 | |
22 if [ ! -z "$(which c++)" ] | |
23 then | |
24 ln -sf libncurses++w.a /usr/lib/libncurses++.a || exit 1 | |
25 fi |