Mercurial > hg > control-images
view images/lfs-bootstrap/mnt/build/perl.sh @ 6:dc3d5c66e336
The perl build is crazy, and if you have a /bin/mips it tries to run it to see if it's building on an obsolete OS called "mips" rather than Linux. Except that util-linux-ng does a mips alias for setarch, which runs /bin/sh by default if given no arguments, which sits there awaiting input, and the build hangs. Fix: feed it /dev/null.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 17 Sep 2011 00:53:33 -0500 |
parents | bcd2e358d57f |
children |
line wrap: on
line source
#!/bin/sh if [ ! -e /etc/hosts ] then echo "127.0.0.1 localhost $(hostname)" > /etc/hosts || exit 1 fi # Configure hardwires on the "stack protector", which doesn't work in this # context. Rip out all mention of it. sed -i 's/-fstack-protector//' Configure && # Make Perl use the system zlib instead of a built-in copy. sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \ -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \ -e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \ cpan/Compress-Raw-Zlib/config.in && ./Configure -des -Dprefix=/usr -Dvendorprefix=/usr \ -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 \ -Dpager="/usr/bin/less -is" -Duseshrplib -Dusenm=n < /dev/null && make -j $CPUS || exit 1 if [ ! -z "$CHECK" ] then make test || exit 1 fi make install