generic-poky/meta/packages/perl/perl-5.8.8/perl-configure.sh
Richard Purdie 80785a1072 perl: 5.8.7 -> 5.8.8 (from OE)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1785 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-05-27 21:04:11 +00:00

44 lines
1.1 KiB
Bash
Executable file

ls#! /bin/sh
#
# Generate the common perl configuration
# Needs to be run on a host that matches the bitsize of the target platform
#
echo sh Configure -des \
-Doptimize=-O2 \
-Dmyhostname=localhost \
-Dperladmin=root@localhost \
-Dcc=gcc \
-Dcf_by='Open Embedded' \
-Dinstallprefix=@DESTDIR@ \
-Dprefix=/usr \
-Dvendorprefix=/usr \
-Dsiteprefix=/usr \
-Dotherlibdirs=/usr/lib/perl5/5.8.8 \
-Duseshrplib \
-Dusethreads \
-Duseithreads \
-Duselargefiles \
-Ud_dosuid \
-Dd_semctl_semun \
-Ui_db \
-Ui_ndbm \
-Ui_gdbm \
-Di_shadow \
-Di_syslog \
-Dman3ext=3pm \
-Duseperlio \
-Dinstallusrbinperl \
-Ubincompat5005 \
-Uversiononly \
-Dpager='/usr/bin/less -isr'
cp -f config.sh config.sh.COMMON
TARGETOS=$(grep myarchname config.sh.COMMON | sed "s#.*'\(.*\)'.*#\1#")
sed -r -i config.sh.COMMON \
-e "s#(install.*=')(/usr)/local(.*')#\1@DESTDIR@\2\3#g" \
-e 's#'$TARGETOS'#@ARCH@#g'