>> I’m not the biggest fan of the mess they call Perl
I have to say, I feel the same about Perl. The last time I cross compiled
perl from 32bit to 64bit, I had to apply the patch below for it to work.
The next worst package is actually apache w/ php_mod, which uses perl to do
compile-time configuration.
+++ perl.conf (working copy)
@@ -16,8 +16,9 @@
perl_cross_bootstrap()
{
# build a native miniperl
- eval $MAKE miniperl
- cp miniperl miniperl.native
+ eval $MAKE miniperl generate_uudmap
+ cp -v miniperl miniperl.native
+ cp -v generate_uudmap generate_uudmap.native
$MAKE clean
# setup cross compiler
@@ -28,6 +29,8 @@
cc='$CC'
ccname='$CC'
ld='$CC'
+hostperl=./miniperl.native
+hostgenerate=./generate_uudmap.native
libs='-ldl -lm -lcrypt -lutil -lc'
perllibs='-ldl -lm -lcrypt -lutil -lc'
d_futimes='undef'
@@ -39,8 +42,8 @@
# force config.h rebuild
eval $MAKE $makeopt config.h
- eval $MAKE $makeopt miniperl
- cp -f miniperl.native miniperl
+# eval $MAKE $makeopt miniperl
+# cp -f miniperl.native miniperl
}
perl_postmake() {
@@ -84,6 +87,7 @@
hook_add preconf 2 "( rm -f config.sh Policy.sh; eval sh Configure
\$confopt; )"
if ! atstage native; then
+ var_append confopt " " "-Dtargetdir=$root"
var_append confopt " " "-Ddynamic_ext=none"
var_append confopt " " "-Dstatic_ext=\"Data/Dumper Cwd IO Fcntl
POSIX\""
hook_add premake 3 "perl_cross_bootstrap"
?
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2