Pure LFS Hint - good to go

Greg Schafer gschafer at zip.com.au
Tue Feb 18 17:03:25 PST 2003


On Mon, Feb 17, 2003 at 09:42:06PM -0600, Tushar Teredesai wrote:
> Now that I have played with it, here is how I got perl to compile 
> against the glibc in /stage1 in Chapter 5:-)
> 
> perl_version=5.8.0 &&
> glibc_version=2.3.1 &&
> b_prefix=/stage1 &&
> tar -xvzf perl-$perl_version.tar.gz &&
> cd perl-$perl_version &&
> ./Configure -d -E -s -Doptimize="-O2 -pipe -w" \
> -Dprefix=$b_prefix -Dldflags="-s" -Uinstallusrbinperl \
> -Uusedl -Dlibpth=$b_prefix/lib &&
> cp config.sh config.sh.orig &&
> l=`find $b_prefix/lib -name "libc\-*.so" -type f` &&
> sed -e "s@/usr/@$b_prefix/@g" -e "s:^libc=.*:libc=\'$l\':g" \
> -e "s:^gnulibc_version=.*:gnulibc_version=\'$glibc_version\':g"\
> config.sh.orig > config.sh &&
> rm -f config.sh.orig &&
> unset l &&
> ./Configure -d -e -r &&
> make &&
> make install &&
> rm -rf $b_prefix/man &&
> cd .. &&
> rm -rf perl-$perl_version

Tush, far out man! Was hoping for something a bit more "user-friendly" :-/
That sed is equivalent in hack value to my miniperl thing :)

For the life of me, I cannot figure out how to disable the building of the
extensions automatically. If I go through the Configure interactively, it
gives me the option to enter in "none" so that no extensions get built. Bah,
it's a fk'n nightmare.. I give up.

Greg
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list