Perl - Cross-LFS Multilib

Thomas Pegg thomasp at
Thu Oct 27 16:30:00 PDT 2005

On Thu, 2005-10-27 at 21:35 +0100, Ken Moffat wrote:

> >
>   OK, using Ryan's patch from last week plus the installstyle echo, with 
> only a 64-bit perl, everything is in /usr/lib64/perl5 and XML-Parser 
> installs into /usr/lib64/perl5/site_perl.  Looks good, apart from 
> the libc=/lib/ issue in 'perl -V'.
I think I may have a found a solution for that, I used a patch (attached
below) that's a variation on the current libc patch, the main
differences being that I dropped the last hunk of the patch it's only
needed for the tools version of perl. It does set libc properly (partial
output of perl -V below". I also used the -Dlibpth Jim posted earlier so
perl doesn't set it to just /usr/local/lib.

  Linker and Libraries:
    ld='gcc -m64', ldflags =''
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib64/, so=so, useshrplib=false,
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared'

Characteristics of this binary (from libperl):
  Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
  Built under linux
  Compiled at Oct 27 2005 23:06:28

I tested this install against a few perl modules and everything ended up
where it should and linked to the proper libs.

LFS User : 4729 / Linux User : 298329
kitt - Powered by: Linux 2.6.11-gentoo-r7
18:14:37 up 12 days, 1:16, 4 users, load average: 0.31, 0.43, 0.51

-------------- next part --------------
A non-text attachment was scrubbed...
Name: perl-5.8.7-libc_lib64-1.patch
Type: text/x-patch
Size: 951 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the lfs-dev mailing list