mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-01-23 22:42:28 +08:00
29 lines
621 B
Bash
29 lines
621 B
Bash
#!/bin/bash
|
|
|
|
source versions.sh
|
|
|
|
GLSOURCES="/sources"
|
|
|
|
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
|
|
|
[ -d readline-${readline_version} ] && rm -rf readline-${readline_version}
|
|
|
|
tar -zxf ${readline_tarball}
|
|
|
|
cd readline-${readline_version}
|
|
|
|
sed -i '/MV.*old/d' Makefile.in
|
|
sed -i '/{OLDSUFF}/c:' support/shlib-install
|
|
sed -i 's/-Wl,-rpath,[^ ]*//' support/shobj-conf
|
|
|
|
./configure --prefix=/usr \
|
|
--disable-static \
|
|
--with-curses \
|
|
--docdir=/usr/share/doc/readline-${readline_version}
|
|
|
|
make SHLIB_LIBS="-lncursesw" install
|
|
if [ $? -ne 0 ]; then
|
|
myfail "Failed building readline"
|
|
fi
|
|
|