6.35.3. Contents of Grep
Installed programs: egrep (link to grep), fgrep (link to grep), and grep
The Grep package contains programs for searching through files.
This package requires compiler variables to be set for the target in the environment.
export CC="${CLFS_TARGET}-gcc"
export CXX="${CLFS_TARGET}-g++"
export AR="${CLFS_TARGET}-ar"
export AS="${CLFS_TARGET}-as"
export RANLIB="${CLFS_TARGET}-ranlib"
export LD="${CLFS_TARGET}-ld"
export STRIP="${CLFS_TARGET}-strip"This patch adds support for Internationalization:
patch -Np1 -i ../grep-2.5.4-i18n-1.patch
Prepare Grep for compilation:
./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--prefix=/usr --bindir=/bin --disable-perl-regexpCompile the package:
make
Install the package:
make DESTDIR=${CLFS} install