diff options
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.2/perl-configure.sh')
-rwxr-xr-x | meta/recipes-devtools/perl/perl-5.12.2/perl-configure.sh | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.2/perl-configure.sh b/meta/recipes-devtools/perl/perl-5.12.2/perl-configure.sh new file mode 100755 index 0000000000..c29e966c05 --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.12.2/perl-configure.sh | |||
@@ -0,0 +1,43 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | # | ||
4 | # Generate the common perl configuration | ||
5 | # Needs to be run on a host that matches the bitsize of the target platform | ||
6 | # | ||
7 | |||
8 | echo sh Configure -des \ | ||
9 | -Doptimize=-O2 \ | ||
10 | -Dmyhostname=localhost \ | ||
11 | -Dperladmin=root@localhost \ | ||
12 | -Dcc=gcc \ | ||
13 | -Dcf_by='Open Embedded' \ | ||
14 | -Dinstallprefix=@DESTDIR@ \ | ||
15 | -Dprefix=/usr \ | ||
16 | -Dvendorprefix=/usr \ | ||
17 | -Dsiteprefix=/usr \ | ||
18 | -Dotherlibdirs=/usr/lib/perl5/5.12.2 \ | ||
19 | -Duseshrplib \ | ||
20 | -Dusethreads \ | ||
21 | -Duseithreads \ | ||
22 | -Duselargefiles \ | ||
23 | -Ud_dosuid \ | ||
24 | -Dd_semctl_semun \ | ||
25 | -Ui_db \ | ||
26 | -Ui_ndbm \ | ||
27 | -Ui_gdbm \ | ||
28 | -Di_shadow \ | ||
29 | -Di_syslog \ | ||
30 | -Dman3ext=3pm \ | ||
31 | -Duseperlio \ | ||
32 | -Dinstallusrbinperl \ | ||
33 | -Ubincompat5005 \ | ||
34 | -Uversiononly \ | ||
35 | -Dpager='/usr/bin/less -isr' | ||
36 | |||
37 | cp -f config.sh config.sh.COMMON | ||
38 | |||
39 | TARGETOS=$(grep myarchname config.sh.COMMON | sed "s#.*'\(.*\)'.*#\1#") | ||
40 | |||
41 | sed -r -i config.sh.COMMON \ | ||
42 | -e "s#(install.*=')(/usr)/local(.*')#\1@DESTDIR@\2\3#g" \ | ||
43 | -e 's#'$TARGETOS'#@ARCH@#g' | ||