Cross-Compiling Perl

Ken Moffat ken at linuxfromscratch.org
Wed Dec 28 16:53:49 PST 2005


On Wed, 28 Dec 2005, Jim Gifford wrote:

> 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.
>
  But, where do you get config.sh from, if configure.gnu errors out ?

Ken
-- 
  das eine Mal als Tragödie, das andere Mal als Farce


More information about the cross-lfs mailing list