Cross-Compiling Perl

Jim Gifford lfs at jg555.com
Wed Dec 28 15:20:54 PST 2005


Joe Ciccone wrote:

>Jim Gifford wrote:
>
>  
>
>>./configure.gnu --prefix=/tools -Dstatic_ext='Data/Dumper IO Fcntl POSIX'
>>
>>
>>    
>>
>This one line errors out on me because CC is set by the enviornment and
>then perl tries to excute programs created by CC to create headers.
>  
>
Joe,  this part corrects that
cp config.sh{,.orig}
sed -e "s@\(^ar=\).*@\1'${AR}'@g" \
     -e "s@\(^ranlib=\).*@\1'${RANLIB}'@g" \
     -e "s@\(^cc=\).*@\1'${CC} ${BUILD32}'@g" \
     -e "s@\(^ld=\).*@\1'${CC} ${BUILD32}'@g" config.sh.orig > config.sh

At least this works on mine.

-- 
------
jim at linuxfromscratch.org
lfs at jg555.com

LFS User # 2577
Registered Linux User # 299986




More information about the cross-lfs mailing list