Pure LFS Hint - good to go

Tushar Teredesai tushar at linuxfromscratch.org
Mon Feb 17 19:42:06 PST 2003


Greg Schafer wrote:
> On Fri, Feb 14, 2003 at 11:01:00PM -0600, Tushar Teredesai wrote:
>>
>>   * Perl can be installed in Chapter 5. If dynamic version is too
>>     troublesome, maybe a static one.
> 
> 
> /me reaches for the salt :-). Dude, give me some feedback when you've
> actually had a play with it. I spent a full day farking around with the perl
> stuff and I'm still not happy with it. Perl's assumptions about where /libc
> is located are truly mind boggling.

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

The output of FindLibraries (a home-brew script that determines the 
dependencies using ld):

/stage1/lib/ld-linux.so.2
/stage1/lib/libc.so.6
/stage1/lib/libcrypt.so.1
/stage1/lib/libdl.so.2
/stage1/lib/libm.so.6
/stage1/lib/libnsl.so.1
/stage1/lib/libutil.so.1

-- 
Tushar Teredesai
    http://www.linuxfromscratch.org/~tushar/
    http://www.geocities.com/tushar/

-- 
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