Changeset 7726d00


Ignore:
Timestamp:
Jul 22, 2006, 3:38:24 PM (18 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
3d1fb37
Parents:
cc40a6f
Message:

Deleted perl-5.8.8-cross_compile-1.patch; Added perl-5.8.8-cross_compile-2.patch

File:
1 moved

Legend:

Unmodified
Added
Removed
  • patches/2.0/perl-5.8.8-cross_compile-2.patch

    rcc40a6f r7726d00  
    11Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org>
    2 Date: 2006-06-16
     2Date: 2006-07-22
    33Upstream Status: Not Submitted
    44Origin: Joe Ciccone
    55Description: Adds a Makefile to assit with the cross-compilation of perl.
    66
    7              Archs supported: arm
     7             Archs supported: arm x86
    88
    99             Usage:
     
    1212               make DESTDIR=[optional:fakeroot] install
    1313
    14 diff -Naur perl-5.8.8.orig/Cross/Makefile perl-5.8.8/Cross/Makefile
    15 --- perl-5.8.8.orig/Cross/Makefile      2004-01-12 15:44:01.000000000 -0500
    16 +++ perl-5.8.8/Cross/Makefile   2006-06-16 17:04:07.000000000 -0400
    17 @@ -1,68 +1,62 @@
    18 -## Toplevel Makefile for cross-compilation of perl
    19 -#
    20 -## $Id: Makefile,v 1.7 2004/01/12 15:41:02 red Exp red $
    21 -
    22 -export TOPDIR=${shell pwd}
    23 -include $(TOPDIR)/config
    24 -export CFLAGS
    25 -export SYS=$(ARCH)-$(OS)
    26 -export CROSS=$(ARCH)-$(OS)-
    27 -export FULL_OPTIMIZATION = -fexpensive-optimizations -fomit-frame-pointer -O2
    28 -export OPTIMIZATION = -O2
    29 -
    30 -export CC = $(CROSS)gcc
    31 -export CXX = $(CROSS)g++
    32 -export LD = $(CROSS)ld
    33 -export STRIP = $(CROSS)strip
    34 -export AR = $(CROSS)ar
    35 -export RANLIB = $(CROSS)ranlib
    36 -
    37 -
    38 -## Optimisation work
    39 -ifeq ($(ARCH),arm)
    40 - ifdef CONFIG_TARGET_ARM_SA11X0
    41 -   ifndef Architecture
    42 -     Architecture = armv4l-strongarm
    43 -   endif
    44 -   FULL_OPTIMIZATION += -march=armv4 -mtune=strongarm1100 -mapcs-32
    45 -   OPTIMIZATION += -march=armv4 -mtune=strongarm1100 -mapcs-32
    46 - endif
    47 -endif
    48 +PWD    := $(shell pwd)
    49 +TOP    := $(shell dirname $(PWD))
    50  
    51 -CFLAGS+=$(FULL_OPTIMIZATION)
    52 +VERSION        := $(shell awk '/define[ ]PERL_REVISION/ {printf $$3"."} /define[ ]PERL_VERSION/ {printf $$3"."} /define[ ]PERL_SUBVERSION/ {print $$3}' $(TOP)/patchlevel.h)
    53  
    54 -all:
    55 -       @echo Please read the README file before doing anything else.
    56 +CROSS_COMPILE := arm-unknown-linux-gnu-
    57 +
    58 +ARCH   := arm
    59 +OS     := linux
    60 +
    61 +SYS    := $(ARCH)-$(OS)
    62  
    63 -gen_patch:
    64 -       diff -Bbur ../Makefile.SH Makefile.SH > Makefile.SH.patch
    65 -       diff -Bbur ../installperl installperl > installperl.patch
    66 -
    67 -patch:
    68 -       cd .. ; if [ ! -e ./CROSS_PATCHED ] ; then \
    69 -               patch -p1 < Cross/Makefile.SH.patch; \
    70 -               patch -p1 < Cross/installperl.patch ; mv installperl installperl-patched; \
    71 -               sed -e 's/XXSTRIPXX/$(SYS)/' installperl-patched > installperl; \
    72 -               touch CROSS_PATCHED ; fi
    73 -
    74 -dry_patch:
    75 -       cd .. ; patch --dry-run -p1 < Cross/Makefile.SH.patch; \
    76 -               patch --dry-run -p1 < Cross/installperl.patch; \
    77 -
    78 -perl:
    79 -       @echo Perl cross-build directory is $(TOPDIR)
    80 -       @echo Target arch is $(SYS)
    81 -       @echo toolchain: $(CC), $(CXX), $(LD), $(STRIP), $(AR), $(RANLIB)
    82 -       @echo Optimizations: $(FULL_OPTIMIZATION)
    83 -
    84 -       $(TOPDIR)/generate_config_sh config.sh-$(SYS) > $(TOPDIR)/../config.sh
    85 -       cd $(TOPDIR)/.. ; ./Configure -S ; make depend ; make ; make more
    86 -       cd $(TOPDIR)/.. ; mkdir -p fake_config_library ; cp lib/Config.pm fake_config_library
    87 -       cd $(TOPDIR)/.. ; $(MAKE) more2 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
    88 -       cd $(TOPDIR)/.. ; $(MAKE) more3 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
    89 -       cd $(TOPDIR)/.. ; $(MAKE) more4 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
    90 -       cd $(TOPDIR)/.. ; rm -rf install_me_here
    91 -       cd $(TOPDIR)/.. ; make install-strip
    92 -       cd $(TOPDIR)/.. ; sh -x Cross/warp
    93 +AR     := $(CROSS_COMPILE)ar
    94 +CC     := $(CROSS_COMPILE)gcc
    95 +CXX    := $(CROSS_COMPILE)g++
    96 +CPP    := $(CROSS_COMPILE)cpp
    97 +LD     := $(CROSS_COMPILE)ld
    98 +RANLIB := $(CROSS_COMPILE)ranlib
    99 +STRIP  := $(CROSS_COMPILE)strip
    100  
    101 +.PHONY: all install create-config.sh
    102 +
    103 +all:
    104 +       cd $(TOP); CC=gcc ./configure.gnu
    105  
    106 +       # Make miniperl
    107 +       $(MAKE) -C $(TOP) miniperl
    108 +       mv -v $(TOP)/miniperl $(TOP)/miniperl-cross
    109 +       $(MAKE) -C $(TOP) clean
    110 +
    111 +       # Do the final build
    112 +       $(MAKE) create-config.sh
    113 +       cd $(TOP); ./Configure -S
    114 +       $(MAKE) -C $(TOP)
    115 +
    116 +install:
    117 +       $(MAKE) -C $(TOP) install
    118 +
    119 +create-config.sh:
    120 +       sed -e "s@\(^archname=\).*@\1'$(SYS)'@g" \
    121 +           -e "s@\(^myarchname=\).*@\1'$(SYS)'@g" \
    122 +           -e "s@\(^ar=\).*@\1'$(AR)'@g" \
    123 +           -e "s@\(^cc=\).*@\1'$(CC)'@g" \
    124 +           -e "s@\(^ccname=\).*@\1'$(CC)'@g" \
    125 +           -e "s@\(^cpp=\).*@\1'$(CPP)'@g" \
    126 +           -e "s@\(^cpprun=\).*@\1'$(CC) -E'@g" \
    127 +           -e "s@\(^cppstdin=\).*@\1'$(CC) -E'@g" \
    128 +           -e "s@\(^ld=\).*@\1'$(LD)'@g" \
    129 +           -e "s@\(^ranlib=\).*@\1'$(RANLIB)'@g" \
    130 +           -e "s@\(^full_ar=\).*@\1'$(shell which $(AR))'@g" \
    131 +           -e "s@\(^full_sed=\).*@\1'$(shell which sed)'@g" \
    132 +           -e "/^ccflags=/s@-I/usr/local/include@@g" \
    133 +           -e "/^cppflags=/s@-I/usr/local/include@@g" \
    134 +           -e "/^ldflags=/s@-L/usr/local/lib@@g" \
    135 +           -e "/^lddlflags=/s@-L/usr/local/lib@@g" \
    136 +           -e "/^archlib=/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
    137 +           -e "/^archlibexp=/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
    138 +           -e "/^installarchlib=/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
    139 +           -e "/^installsitearch=/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
    140 +           -e "/^sitearch/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
    141 +           -e "/^sitearchexp/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
    142 +           $(PWD)/config.sh-$(SYS) > $(TOP)/config.sh
    143 diff -Naur perl-5.8.8.orig/Cross/Makefile.SH.patch perl-5.8.8/Cross/Makefile.SH.patch
    144 --- perl-5.8.8.orig/Cross/Makefile.SH.patch     2006-01-12 15:18:31.000000000 -0500
    145 +++ perl-5.8.8/Cross/Makefile.SH.patch  1969-12-31 19:00:00.000000000 -0500
    146 @@ -1,189 +0,0 @@
    147 ---- ../Makefile.SH
    148 -+++ ../Makefile.SH
    149 -@@ -129,18 +129,7 @@
    150 -           # INSTALL file, under "Building a shared perl library".
    151 -           # If there is no pre-existing $libperl, we don't need
    152 -           # to do anything further.
    153 --          if test -f $archlib/CORE/$libperl; then
    154 --              rm -f preload
    155 --              cat <<'EOT' > preload
    156 --#! /bin/sh
    157 --lib=$1
    158 --shift
    159 --test -r $lib && export LD_PRELOAD="$lib $LD_PRELOAD"
    160 --exec "$@"
    161 --EOT
    162 --              chmod 755 preload
    163 --              ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
    164 --          fi
    165 -+          echo linux libraries overwritten by cross-compile patches
    166 -           ;;
    167 -       os390)  test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
    168 -               ;;
    169 -@@ -389,9 +378,21 @@
    170 - .c.s:
    171 -       $(CCCMDSRC) -S $*.c
    172 -
    173 --all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
    174 --      @echo " ";
    175 --      @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
    176 -+#all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
    177 -+#     @echo " ";
    178 -+#     @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
    179 -+
    180 -+all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT)
    181 -+      mv miniperl miniperl-arm
    182 -+      ln -s /usr/bin/perl miniperl
    183 -+
    184 -+more: extra.pods $(private) $(public)
    185 -+
    186 -+more2: $(dynamic_ext)
    187 -+
    188 -+more3: $(nonxs_ext)
    189 -+
    190 -+more4: extras.make
    191 -
    192 - .PHONY: all compile translators utilities
    193 -
    194 -@@ -401,10 +402,10 @@
    195 -       cd x2p; $(MAKE) compile;
    196 -       cd pod; $(MAKE) compile;
    197 -
    198 --translators:  miniperl$(EXE_EXT) $(CONFIGPM) FORCE
    199 -+translators:  $(CONFIGPM) FORCE
    200 -       @echo " "; echo "       Making x2p stuff"; cd x2p; $(LDLIBPTH) $(MAKE) all
    201 -
    202 --utilities:    miniperl$(EXE_EXT) $(CONFIGPM) $(plextract) lib/lib.pm FORCE
    203 -+utilities:    $(CONFIGPM) $(plextract) lib/lib.pm FORCE
    204 -       @echo " "; echo "       Making utilities"; cd utils; $(LDLIBPTH) $(MAKE) all
    205 -
    206 -
    207 -@@ -579,7 +580,7 @@
    208 -       $(CC) -o miniperl $(CLDFLAGS) \
    209 -           `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
    210 -           miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
    211 --      $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    212 -+#     $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    213 - !NO!SUBS!
    214 -               ;;
    215 -       next4*)
    216 -@@ -587,7 +588,7 @@
    217 - miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
    218 -       $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
    219 -           miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
    220 --      $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    221 -+#     $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    222 - !NO!SUBS!
    223 -               ;;
    224 -       darwin*)
    225 -@@ -754,7 +755,7 @@
    226 - # We need to autosplit in two steps because VOS can't handle so many args
    227 - #
    228 - .PHONY: preplibrary
    229 --preplibrary: miniperl$(EXE_EXT) $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
    230 -+preplibrary: $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
    231 -       @sh ./makedir lib/auto
    232 -       @echo " AutoSplitting perl library"
    233 -       $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \
    234 -@@ -763,35 +764,35 @@
    235 -               autosplit_lib_modules(@ARGV)' lib/*/*.pm
    236 -       $(MAKE) lib/re.pm
    237 -
    238 --lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary
    239 -+lib/Config.pod: config.sh configpm Porting/Glossary
    240 -       $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
    241 -
    242 - $(CONFIGPM): lib/Config.pod
    243 -
    244 --lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl $(CONFIGPM)
    245 -+lib/ExtUtils/Miniperl.pm: miniperlmain.c minimod.pl $(CONFIGPM)
    246 -       $(LDLIBPTH) ./miniperl minimod.pl > lib/ExtUtils/Miniperl.pm
    247 -
    248 - lib/re.pm: ext/re/re.pm
    249 -       cp ext/re/re.pm lib/re.pm
    250 -
    251 --$(plextract): miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p
    252 -+$(plextract): $(CONFIGPM) x2p/s2p
    253 -       @-rm -f $@
    254 -       $(LDLIBPTH) ./miniperl -I`pwd`/lib $@.PL
    255 -
    256 --x2p/s2p: miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p.PL
    257 -+x2p/s2p: $(CONFIGPM) x2p/s2p.PL
    258 -       cd x2p; $(LDLIBPTH) $(MAKE) s2p
    259 -
    260 --lib/lib.pm:   miniperl$(EXE_EXT) $(CONFIGPM)
    261 -+lib/lib.pm:   $(CONFIGPM)
    262 -       @-rm -f $@
    263 -       $(LDLIBPTH) ./miniperl -Ilib lib/lib_pm.PL
    264 -
    265 - unidatafiles $(unidatafiles): uni.data
    266 -
    267 --uni.data: miniperl$(EXE_EXT) $(CONFIGPM) lib/unicore/mktables
    268 -+uni.data: $(CONFIGPM) lib/unicore/mktables
    269 -       cd lib/unicore && $(LDLIBPTH) ../../miniperl -I../../lib mktables -w
    270 -       touch uni.data
    271 -
    272 --extra.pods: miniperl$(EXE_EXT)
    273 -+extra.pods:
    274 -       -@test -f extra.pods && rm -f `cat extra.pods`
    275 -       -@rm -f extra.pods
    276 -       -@for x in `grep -l '^=[a-z]' README.* | grep -v README.vms` ; do \
    277 -@@ -798,18 +799,7 @@
    278 - INSTALL_DEPENDENCE = all
    279 -
    280 - install.perl: $(INSTALL_DEPENDENCE) installperl
    281 --      if [ -n "$(COMPILE)" ]; \
    282 --      then \
    283 --              cd utils; $(MAKE) compile; \
    284 --              cd ../x2p; $(MAKE) compile; \
    285 --              cd ../pod; $(MAKE) compile; \
    286 --      else :; \
    287 --      fi
    288 --      $(LDLIBPTH) ./perl installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
    289 --      $(MAKE) extras.install
    290 --
    291 --install.man:  all installman
    292 --      $(LDLIBPTH) ./perl installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
    293 -+      /usr/bin/perl -Ifake_config_library -MConfig installperl $(INSTALLFLAGS) $(STRIPFLAGS)
    294 -
    295 - # XXX Experimental. Hardwired values, but useful for testing.
    296 - # Eventually Configure could ask for some of these values.
    297 -@@ -925,16 +915,16 @@
    298 - #
    299 - # DynaLoader may be needed for extensions that use Makefile.PL.
    300 -
    301 --$(DYNALOADER):        miniperl$(EXE_EXT) preplibrary FORCE
    302 -+$(DYNALOADER):        preplibrary FORCE
    303 -       @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
    304 -
    305 --d_dummy $(dynamic_ext):       miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
    306 -+d_dummy $(dynamic_ext):       preplibrary $(DYNALOADER) FORCE
    307 -       @$(LDLIBPTH) sh ext/util/make_ext dynamic $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
    308 -
    309 --s_dummy $(static_ext):        miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
    310 -+s_dummy $(static_ext):        preplibrary $(DYNALOADER) FORCE
    311 -       @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
    312 -
    313 --n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
    314 -+n_dummy $(nonxs_ext): preplibrary $(DYNALOADER) FORCE
    315 -       @$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
    316 -
    317 - .PHONY: clean _tidy _mopup _cleaner1 _cleaner2 \
    318 -@@ -1074,7 +1064,7 @@
    319 -
    320 - test_prep_pre: preplibrary utilities $(nonxs_ext)
    321 -
    322 --test_prep: test_prep_pre miniperl$(EXE_EXT) $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL)
    323 -+test_prep: test_prep_pre $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL)
    324 -       PERL=./perl $(MAKE) _test_prep
    325 -
    326 - _test_tty:
    327 -@@ -1167,7 +1157,7 @@
    328 -
    329 - # Can't depend on lib/Config.pm because that might be where miniperl
    330 - # is crashing.
    331 --minitest: miniperl$(EXE_EXT) lib/re.pm minitest.prep
    332 -+minitest: lib/re.pm minitest.prep
    333 -       - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
    334 -               && $(LDLIBPTH) ./perl TEST -minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
    335 -
    336 diff -Naur perl-5.8.8.orig/Cross/README perl-5.8.8/Cross/README
    337 --- perl-5.8.8.orig/Cross/README        2005-06-30 05:24:56.000000000 -0400
    338 +++ perl-5.8.8/Cross/README     1969-12-31 19:00:00.000000000 -0500
    339 @@ -1,90 +0,0 @@
    340 -Building for arm-linux
    341 -----------------------
    342 -
    343 -The files in this directory add another cross-compilation
    344 -target to the Perl buildsystem.  It was built as a part of
    345 -the Open Zaurus (http://www.openzaurus.com/) distribution.
    346 -Most / All of the arm compiler optimisations are "borrowed"
    347 -from this excellent project.
    348 -
    349 -(Further discussion about cross-compiling Perl in the top level
    350 -INSTALL file, see the section "Cross-compilation".)
    351 -
    352 -The main target is arm-linux but I have also managed to
    353 -successfully cross-compile Perl for Solaris x86 using the same
    354 -buildsystem.
    355 -
    356 -We are currently dependent on an existing working local copy of
    357 -Perl ** of the same version and revision ** which is available
    358 -as /usr/bin/perl.
    359 -
    360 -You need a working and tested cross-compiler for your build
    361 -and target combination.  The binary directory must be in
    362 -your path.
    363 -
    364 -1)     You should be reading me (README) in perl-5.x.y/Cross
    365 -
    366 -2)     Make sure you are in the Cross directory.
    367 -
    368 -3)     Edit the file 'config' to contain your target platform information.
    369 -
    370 -4)     make patch      ## This will patch the existing source-tree.
    371 -5)     make perl       ## Will make perl
    372 -
    373 -Your built Perl environment is in install_me_here/ in your build
    374 -directory.  From here you can package and deploy as you wish.
    375 -
    376 -The Obvious Ommissions
    377 -----------------------
    378 -
    379 -This does NOT perform any installation as site installation method
    380 -will be dependent on the target architecture and OS.
    381 -
    382 -make test will NOT work as the binaries and libraries will not execute
    383 -on your BUILD machine.
    384 -
    385 -Due to space limitations on the Zaurus (it's a PDA) we do not provide
    386 -documentation in the core - Therefore man pages are not even generated.
    387 -
    388 -Other Targets (For Developers)
    389 -------------------------------
    390 -
    391 -It is possible to extend the cross-compilation to other targets.
    392 -We have sucessfully compiled for the target solaris2.8/x86
    393 -on linux/x86 build system.
    394 -
    395 -To attempt a cross-compile for another target using the methods
    396 -in this directory:
    397 -
    398 -1)     Copy the Perl source code onto your TARGET machine.
    399 -2)     Execute sh Configure as normal and configure as required,
    400 -       do not "make".
    401 -3)     Copy the config.sh file that is generated to your BUILD
    402 -       machine and place it in the Cross directory with the
    403 -       filename config.sh-ARCH-OS.  For example,
    404 -       config.sh-i386-pc-solaris2.8.  For the appropriate ARCH
    405 -       and OS please refer to your cross-compiler documentation.
    406 -4)     Edit Cross/config to reflect your new target and continue
    407 -       with build as above.
    408 -
    409 -Should you wish to produce optimised binaries for different
    410 -architectures you can add the appropriate compiler flags to
    411 -the Makefile in a new ifeq ($(ARCH),...) ... endif block.
    412 -
    413 -
    414 -Please refer to your cross-compiler documentation for details.
    415 -
    416 -
    417 -       Note that the Cross/ directory is also used by a different
    418 -       cross-compilation setup described in the INSTALL file, and
    419 -       executed by Configure.  There should be no conflicts since
    420 -       it is unlikely both that cross-compilation setups are used
    421 -       simultaneously.
    422 -
    423 -Enjoy!
    424 -
    425 -References
    426 -----------
    427 -Redvers Davies <red@criticalintegration.com>
    428 -Open Zaurus http://www.openzaurus.org/
    429 -Perl OZ Packages http://www.criticalintegration.com/perl-oz/
    430 diff -Naur perl-5.8.8.orig/Cross/TODO perl-5.8.8/Cross/TODO
    431 --- perl-5.8.8.orig/Cross/TODO  2003-09-05 04:16:48.000000000 -0400
    432 +++ perl-5.8.8/Cross/TODO       1969-12-31 19:00:00.000000000 -0500
    433 @@ -1 +0,0 @@
    434 -Provide a better sandbox for building additional XS libraries.
    43514diff -Naur perl-5.8.8.orig/Cross/config perl-5.8.8/Cross/config
    436 --- perl-5.8.8.orig/Cross/config        2003-04-15 16:31:56.000000000 -0400
     15--- perl-5.8.8.orig/Cross/config        2006-07-22 18:17:24.000000000 -0400
    43716+++ perl-5.8.8/Cross/config     1969-12-31 19:00:00.000000000 -0500
    43817@@ -1,23 +0,0 @@
     
    46140-
    46241diff -Naur perl-5.8.8.orig/Cross/config.sh-arm-linux perl-5.8.8/Cross/config.sh-arm-linux
    463 --- perl-5.8.8.orig/Cross/config.sh-arm-linux   2006-01-18 15:01:36.000000000 -0500
    464 +++ perl-5.8.8/Cross/config.sh-arm-linux        2006-06-16 17:02:55.000000000 -0400
     42--- perl-5.8.8.orig/Cross/config.sh-arm-linux   2006-07-22 18:17:24.000000000 -0400
     43+++ perl-5.8.8/Cross/config.sh-arm-linux        2006-07-22 18:17:35.000000000 -0400
    46544@@ -8,9 +8,9 @@
    46645 
     
    849428 PERL_VERSION=8
    850429 PERL_SUBVERSION=8
    851 diff -Naur perl-5.8.8.orig/Cross/generate_config_sh perl-5.8.8/Cross/generate_config_sh
    852 --- perl-5.8.8.orig/Cross/generate_config_sh    2003-09-05 04:31:08.000000000 -0400
    853 +++ perl-5.8.8/Cross/generate_config_sh 1969-12-31 19:00:00.000000000 -0500
    854 @@ -1,132 +0,0 @@
    855 -#!/usr/bin/perl
    856 -
    857 -##############################################################################
    858 -#
    859 -#      generate_config_sh
    860 -#              Process that takes an automatically generated config.sh
    861 -#              file and allows the environment to overload the values
    862 -#              automatically discovered by Configure on our target platform.
    863 -#
    864 -#      Author  Redvers Davies <red@criticalintegration.com>
    865 -#
    866 -##############################################################################
    867 -
    868 -my $config = shift;
    869 -
    870 -my $sys = $ENV{SYS};
    871 -
    872 -my $callbacks = {};
    873 -$callbacks->{'ar'} = [\&simple_process, ["AR", "arm-linux-ar"]];
    874 -$callbacks->{'archname'} = [\&simple_process, ["SYS", "armv4l-linux"]];
    875 -$callbacks->{'cc'} = [\&simple_process, ["CC", "arm-linux-gcc"]];
    876 -$callbacks->{'cccdlflags'} = [\&simple_process, ["CFLAGS", ""]];
    877 -$callbacks->{'ccdlflags'} = [\&simple_process, ["CFLAGS", ""]];
    878 -$callbacks->{'ccflags'} = [\&simple_process, ["CFLAGS", "-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]];
    879 -$callbacks->{'ccflags_uselargefiles'} = [\&simple_process, ["CFLAGS", "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]];
    880 -$callbacks->{'ccname'} = [\&simple_process, ["CC", "arm-linux-gcc"]];
    881 -$callbacks->{'cpp'} = [\&simple_process, ["CCP", "arm-linux-cpp"]];
    882 -$callbacks->{'cppflags'} = [\&simple_process, ["CCPFLAGS", "-fno-strict-aliasing"]];
    883 -$callbacks->{'cpprun'} = [\&simple_process_append, ["CC", "arm-linux-gcc -E", "-E"]];
    884 -$callbacks->{'cppstdin'} = [\&simple_process_append, ["CC", "arm-linux-gcc -E", "-E"]];
    885 -$callbacks->{'full_ar'} = [\&backtick, ["AR", "which $ENV{AR}", "/usr/local/arm/2.95.3/bin/arm-linux-ar"]];
    886 -$callbacks->{'ld'} = [\&simple_process, ["LD", "arm-linux-ld"]];
    887 -$callbacks->{'ldflags'} = [\&simple_process, ["LDFLAGS", ""]];
    888 -$callbacks->{'ldflags_uselargefiles'} = [\&simple_process, ["LDFLAGS", ""]];
    889 -$callbacks->{'myarchname'} = [\&simple_process, ["SYS", "armv4l-linux"]];
    890 -$callbacks->{'archlib'} = [\&library_munge, ["SYS", "armv4l-linux"]];
    891 -$callbacks->{'archlibexp'} = [\&library_munge, ["SYS", "armv4l-linux"]];
    892 -$callbacks->{'installarchlib'} = [\&library_munge, ["SYS", "armv4l-linux"]];
    893 -$callbacks->{'installsitearch'} = [\&library_munge, ["SYS", "armv4l-linux"]];
    894 -$callbacks->{'sitearch'} = [\&library_munge, ["SYS", "armv4l-linux"]];
    895 -$callbacks->{'sitearchexp'} = [\&library_munge, ["SYS", "armv4l-linux"]];
    896 -
    897 -if ($config eq "") {
    898 -       die("Please run me as generate_config_sh path/to/original/config.sh");
    899 -}
    900 -
    901 -open(FILE, "$config") || die("Unable to open $config");
    902 -
    903 -my $line_in;
    904 -while ($line_in = <FILE>) {
    905 -       if ($line_in =~ /^#/) {
    906 -               next;
    907 -       }
    908 -
    909 -       if ($line_in !~ /./) {
    910 -               next;
    911 -       }
    912 -
    913 -       $line_in =~ /^([^=]+)=(.*)/;
    914 -       my $key = $1;
    915 -       my $value = $2;
    916 -       if (ref($callbacks->{$key}) eq "ARRAY") {
    917 -               ($callbacks->{$key}[0])->($key,$value);
    918 -       } else {
    919 -               print($line_in);
    920 -       }
    921 -}
    922 -
    923 -sub backtick {
    924 -       my $key = shift;
    925 -       my $value = shift;
    926 -       my $envvar = $callbacks->{$key}->[1][0];
    927 -
    928 -       if ($ENV{$envvar}) {
    929 -               my $rawtext = `$callbacks->{$key}->[1][1]`;
    930 -               chomp($rawtext);
    931 -               print("$key=\'$rawtext\'\n");
    932 -       } else {
    933 -               print("$key=\'$callbacks->{$key}->[1][2]\'\n");
    934 -       }
    935 -}
    936 -       
    937 -
    938 -sub simple_process {
    939 -       my $key = shift;
    940 -       my $envvar = $callbacks->{$key}->[1][0];
    941 -
    942 -       if ($ENV{$envvar}) {
    943 -               print("$key=\"$ENV{$envvar}\"\n");
    944 -       } else {
    945 -               print("$key=\'$callbacks->{$key}->[1][1]\'\n");
    946 -       }
    947 -
    948 -}
    949 -
    950 -sub simple_process_append {
    951 -       my $key = shift;
    952 -       my $envvar = $callbacks->{$key}->[1][0];
    953 -
    954 -       if ($ENV{$envvar}) {
    955 -               print("$key=\"$ENV{$envvar} $callbacks->{$key}->[1][2]\"\n");
    956 -       } else {
    957 -               print("$key=\'$callbacks->{$key}->[1][1]\'\n");
    958 -       }
    959 -
    960 -}
    961 -
    962 -sub library_munge {
    963 -       my $key = shift;
    964 -       my $value = shift;
    965 -       my $envvar = $callbacks->{$key}->[1][0];
    966 -
    967 -       if ($ENV{$envvar}) {
    968 -               $value =~ s/$callbacks->{$key}->[1][1]/$ENV{$envvar}/g;
    969 -               print("$key=$value\n");
    970 -       } else {
    971 -               print("$key=$value\n");
    972 -       }
    973 -               
    974 -}
    975 -
    976 -
    977 -
    978 -
    979 -
    980 -
    981 -
    982 -
    983 -
    984 -
    985 -
    986 -
    987 diff -Naur perl-5.8.8.orig/Cross/installperl.patch perl-5.8.8/Cross/installperl.patch
    988 --- perl-5.8.8.orig/Cross/installperl.patch     2003-12-21 19:56:02.000000000 -0500
    989 +++ perl-5.8.8/Cross/installperl.patch  1969-12-31 19:00:00.000000000 -0500
    990 @@ -1,22 +0,0 @@
    991 ---- ../installperl     2003-08-31 11:58:48.000000000 -0500
    992 -+++ installperl        2003-09-05 02:38:40.000000000 -0500
    993 -@@ -3,8 +3,8 @@
    994 - BEGIN {
    995 -     require 5.004;
    996 -     chdir '..' if !-d 'lib' and -d '../lib';
    997 --    @INC = 'lib';
    998 --    $ENV{PERL5LIB} = 'lib';
    999 -+#    @INC = 'lib';
    1000 -+#    $ENV{PERL5LIB} = 'lib';
    1001 - }
    1002 -
    1003 - use strict;
    1004 -@@ -946,7 +946,7 @@
    1005 -               print " " if (@opts);
    1006 -               print "$file\n";
    1007 -           }
    1008 --          system("strip", @opts, $file);
    1009 -+          system("XXSTRIPXX-strip", @opts, $file);
    1010 -       } else {
    1011 -           print "# file '$file' skipped\n" if $verbose;
    1012 -       }
    1013 diff -Naur perl-5.8.8.orig/Cross/warp perl-5.8.8/Cross/warp
    1014 --- perl-5.8.8.orig/Cross/warp  2003-04-14 22:00:58.000000000 -0400
    1015 +++ perl-5.8.8/Cross/warp       1969-12-31 19:00:00.000000000 -0500
    1016 @@ -1,14 +0,0 @@
    1017 -#!/bin/sh -x
    1018 -
    1019 -## This script contains an rm -rf.  This may alarm you.
    1020 -## These directories need to be reccursively deleted.
    1021 -## I don't see any method of making "Bad Things"[tm]
    1022 -## Happen.  But we don't run buildroot as root do we? :-)
    1023 -
    1024 -for f in `find lib -name install_me_here`;do
    1025 -cp -r $f/* ./install_me_here/
    1026 -done
    1027 -
    1028 -for f in `find lib -name install_me_here`;do
    1029 -rm -rf $f
    1030 -done
    1031 diff -Naur perl-5.8.8.orig/MANIFEST perl-5.8.8/MANIFEST
    1032 --- perl-5.8.8.orig/MANIFEST    2006-01-31 18:27:53.000000000 -0500
    1033 +++ perl-5.8.8/MANIFEST 2006-06-16 17:02:55.000000000 -0400
    1034 @@ -33,15 +33,8 @@
    1035  configure.gnu          Crude emulation of GNU configure
    1036  cop.h                  Control operator header
    1037  Copying                        The GNU General Public License
    1038 -Cross/config           Cross-compilation
    1039  Cross/config.sh-arm-linux      Cross-compilation
    1040 -Cross/generate_config_sh       Cross-compilation
    1041 -Cross/installperl.patch                Cross-compilation
    1042  Cross/Makefile         Cross-compilation
    1043 -Cross/Makefile.SH.patch        Cross-compilation
    1044 -Cross/README           Cross-compilation
    1045 -Cross/TODO             Cross-compilation
    1046 -Cross/warp             Cross-compilation
    1047  cv.h                   Code value header
    1048  cygwin/cygwin.c                Additional code for Cygwin port
    1049  cygwin/ld2.in          ld wrapper template for Cygwin port
    1050 diff -Naur perl-5.8.8.orig/Makefile.SH perl-5.8.8/Makefile.SH
    1051 --- perl-5.8.8.orig/Makefile.SH 2006-01-24 07:49:44.000000000 -0500
    1052 +++ perl-5.8.8/Makefile.SH      2006-06-16 17:03:27.000000000 -0400
    1053 @@ -591,7 +591,7 @@
    1054         $(CC) -o miniperl $(CLDFLAGS) \
    1055             `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
    1056             miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
    1057 -       $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    1058 +       $(LDLIBPTH) ./miniperl-cross -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    1059  !NO!SUBS!
    1060                 ;;
    1061         next4*)
    1062 @@ -599,7 +599,7 @@
    1063  miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
    1064         $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
    1065             miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
    1066 -       $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    1067 +       $(LDLIBPTH) ./miniperl-cross -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    1068  !NO!SUBS!
    1069                 ;;
    1070         darwin*)
    1071 @@ -620,7 +620,7 @@
    1072         -@rm -f miniperl.xok
    1073         $(CC) $(CLDFLAGS) $(NAMESPACEFLAGS) -o miniperl \
    1074             miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs)
    1075 -       $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    1076 +       $(LDLIBPTH) ./miniperl-cross -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    1077  !NO!SUBS!
    1078                 ;;
    1079         *)
    1080 @@ -629,7 +629,7 @@
    1081         -@rm -f miniperl.xok
    1082         $(LDLIBPTH) $(CC) $(CLDFLAGS) -o miniperl \
    1083             miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs)
    1084 -       $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    1085 +       $(LDLIBPTH) ./miniperl-cross -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
    1086  !NO!SUBS!
    1087                 ;;
    1088         esac
    1089 @@ -769,38 +769,38 @@
    1090  preplibrary: miniperl$(EXE_EXT) $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
    1091         @sh ./makedir lib/auto
    1092         @echo " AutoSplitting perl library"
    1093 -       $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \
    1094 +       $(LDLIBPTH) ./miniperl-cross -Ilib -e 'use AutoSplit; \
    1095                 autosplit_lib_modules(@ARGV)' lib/*.pm
    1096 -       $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \
    1097 +       $(LDLIBPTH) ./miniperl-cross -Ilib -e 'use AutoSplit; \
    1098                 autosplit_lib_modules(@ARGV)' lib/*/*.pm
    1099         $(MAKE) lib/re.pm
    1100  
    1101  lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary
    1102 -       $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
    1103 +       $(LDLIBPTH) ./miniperl-cross -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
    1104  
    1105  $(CONFIGPM): lib/Config.pod
    1106  
    1107  lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl $(CONFIGPM)
    1108 -       $(LDLIBPTH) ./miniperl minimod.pl > lib/ExtUtils/Miniperl.pm
    1109 +       $(LDLIBPTH) ./miniperl-cross minimod.pl > lib/ExtUtils/Miniperl.pm
    1110  
    1111  lib/re.pm: ext/re/re.pm
    1112         cp ext/re/re.pm lib/re.pm
    1113  
    1114  $(plextract):  miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p
    1115         @-rm -f $@
    1116 -       $(LDLIBPTH) ./miniperl -I`pwd`/lib $@.PL
    1117 +       $(LDLIBPTH) ./miniperl-cross -I`pwd`/lib $@.PL
    1118  
    1119  x2p/s2p: miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p.PL
    1120         cd x2p; $(LDLIBPTH) $(MAKE) s2p
    1121  
    1122  lib/lib.pm:    miniperl$(EXE_EXT) $(CONFIGPM)
    1123         @-rm -f $@
    1124 -       $(LDLIBPTH) ./miniperl -Ilib lib/lib_pm.PL
    1125 +       $(LDLIBPTH) ./miniperl-cross -Ilib lib/lib_pm.PL
    1126  
    1127  unidatafiles $(unidatafiles): uni.data
    1128  
    1129  uni.data: miniperl$(EXE_EXT) $(CONFIGPM) lib/unicore/mktables
    1130 -       cd lib/unicore && $(LDLIBPTH) ../../miniperl -I../../lib mktables -w
    1131 +       cd lib/unicore && $(LDLIBPTH) ../../miniperl-cross -I../../lib mktables -w
    1132         touch uni.data
    1133  
    1134  extra.pods: miniperl$(EXE_EXT)
    1135 @@ -829,7 +829,7 @@
    1136         no-install install.perl install.man install.html
    1137  
    1138  META.yml:      Porting/makemeta Porting/Maintainers.pl Porting/Maintainers.pm
    1139 -       $(LDLIBPTH) ./miniperl -Ilib Porting/makemeta
    1140 +       $(LDLIBPTH) ./miniperl-cross -Ilib Porting/makemeta
    1141  
    1142  install-strip:
    1143         $(MAKE) STRIPFLAGS=-s install DESTDIR="$(DESTDIR)"
    1144 @@ -857,17 +857,17 @@
    1145                 cd ../pod; $(MAKE) compile; \
    1146         else :; \
    1147         fi
    1148 -       $(LDLIBPTH) ./perl installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
    1149 +       $(LDLIBPTH) ./miniperl-cross -Ilib installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
    1150         $(MAKE) extras.install
    1151  
    1152  install.man:   all installman
    1153 -       $(LDLIBPTH) ./perl installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
    1154 +       $(LDLIBPTH) ./miniperl-cross -Ilib installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
    1155  
    1156  # XXX Experimental. Hardwired values, but useful for testing.
    1157  # Eventually Configure could ask for some of these values.
    1158  install.html: all installhtml
    1159         -@test -f README.vms && cd vms && $(LNS) ../README.vms README_vms.pod && cd ..
    1160 -       $(LDLIBPTH) ./perl installhtml   \
    1161 +       $(LDLIBPTH) ./miniperl-cross -Ilib installhtml   \
    1162        --podroot=. --podpath=. --recurse  \
    1163        --htmldir=$(privlib)/html   \
    1164        --htmlroot=$(privlib)/html  \
    1165 @@ -1173,7 +1173,7 @@
    1166  # Targets for UTF16 testing:
    1167  
    1168  minitest.utf16: minitest.prep
    1169 -       - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
    1170 +       - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl-cross$(EXE_EXT) perl$(EXE_EXT)) \
    1171                 && $(LDLIBPTH) ./perl TEST -minitest -utf16 base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
    1172  
    1173  test.utf16 check.utf16: test_prep
    1174 @@ -1239,7 +1239,7 @@
    1175  # Can't depend on lib/Config.pm because that might be where miniperl
    1176  # is crashing.
    1177  minitest: miniperl$(EXE_EXT) lib/re.pm minitest.prep
    1178 -       - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
    1179 +       - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl-cross$(EXE_EXT) perl$(EXE_EXT)) \
    1180                 && $(LDLIBPTH) ./perl TEST -minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
    1181  
    1182  # Test via harness
    1183 diff -Naur perl-5.8.8.orig/config.sh.old perl-5.8.8/config.sh.old
    1184 --- perl-5.8.8.orig/config.sh.old       1969-12-31 19:00:00.000000000 -0500
    1185 +++ perl-5.8.8/config.sh.old    2006-06-16 17:02:55.000000000 -0400
     430diff -Naur perl-5.8.8.orig/Cross/config.sh-x86-linux perl-5.8.8/Cross/config.sh-x86-linux
     431--- perl-5.8.8.orig/Cross/config.sh-x86-linux   1969-12-31 19:00:00.000000000 -0500
     432+++ perl-5.8.8/Cross/config.sh-x86-linux        2006-07-22 18:18:01.000000000 -0400
    1186433@@ -0,0 +1,1047 @@
    1187434+#!/bin/sh
     
    1195442+# Package name      : perl5
    1196443+# Source directory  : .
    1197 +# Configuration time: Tue Jun 13 01:46:16 UTC 2006
     444+# Configuration time: Sun Jul  9 12:50:37 EDT 2006
    1198445+# Configured by     : root
    1199 +# Target system     : linux spitz 2.6.16 #1 preempt mon may 1 06:14:52 cest 2006 armv5tel gnulinux
     446+# Target system     : linux lfslivecd 2.6.16.14 #1 smp sat may 13 11:48:14 gmt 2006 i686 pentium3 i386 gnulinux
    1200447+
    1201448+Author=''
     
    1222469+api_version='8'
    1223470+api_versionstring='5.8.0'
    1224 +ar='arm-unknown-linux-gnu-ar'
    1225 +archlib='/usr/lib/perl5/5.8.8/arm-linux'
    1226 +archlibexp='/usr/lib/perl5/5.8.8/arm-linux'
     471+ar='ar'
     472+archlib='/usr/lib/perl5/5.8.8/i686-linux'
     473+archlibexp='/usr/lib/perl5/5.8.8/i686-linux'
    1227474+archname64=''
    1228 +archname='arm-linux'
     475+archname='i686-linux'
    1229476+archobjs=''
    1230477+asctime_r_proto='0'
     
    1240487+castflags='0'
    1241488+cat='cat'
    1242 +cc='arm-unknown-linux-gnu-gcc'
     489+cc='cc'
    1243490+cccdlflags='-fpic'
    1244491+ccdlflags='-Wl,-E'
    1245 +ccflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
     492+ccflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    1246493+ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    1247 +ccname='arm-unknown-linux-gnu-gcc'
     494+ccname='gcc'
    1248495+ccsymbols=''
    1249496+ccversion=''
    1250497+cf_by='root'
    1251 +f_email='root@spitz.ciccone'
    1252 +cf_time='Tue Jun 13 01:46:16 UTC 2006'
     498+cf_email='root@lfslivecd.jenacon.net'
     499+cf_time='Sun Jul  9 12:50:37 EDT 2006'
    1253500+charsize='1'
    1254501+chgrp=''
     
    1261508+cp='cp'
    1262509+cpio=''
    1263 +cpp='arm-unknown-linux-gnu-cpp'
     510+cpp='cpp'
    1264511+cpp_stuff='42'
    1265512+cppccsymbols=''
    1266 +cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement '
     513+cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include'
    1267514+cpplast='-'
    1268515+cppminus='-'
    1269 +cpprun='arm-unknown-linux-gnu-gcc -E'
    1270 +cppstdin='arm-unknown-linux-gnu-gcc -E'
    1271 +cppsymbols='__ELF__=1 _FILE_OFFSET_BITS=64 __GLIBC__=2 __GLIBC_MINOR__=4 __GNUC__=4 __GNUC_MINOR__=1 __GNU_LIBRARY__=6 _LARGEFILE_SOURCE=1 _POSIX_C_SOURCE=200112L _POSIX_SOURCE=1 __STDC__=1 __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_LARGEFILE=1 __USE_MISC=1 __USE_POSIX=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_SVID=1 linux=1 __linux=1 __linux__=1 unix=1 __unix=1 __unix__=1'
     516+cpprun='cc -E'
     517+cppstdin='cc -E'
     518+cppsymbols='__ELF__=1 _FILE_OFFSET_BITS=64 __GLIBC__=2 __GLIBC_MINOR__=4 __GNUC__=4 __GNUC_MINOR__=1 __GNU_LIBRARY__=6 _LARGEFILE_SOURCE=1 _POSIX_C_SOURCE=200112L _POSIX_SOURCE=1 __STDC__=1 __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_LARGEFILE=1 __USE_MISC=1 __USE_POSIX=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_SVID=1 i386=1 __i386=1 __i386__=1 linux=1 __linux=1 __linux__=1 unix=1 __unix=1 __unix__=1'
    1272519+crypt_r_proto='0'
    1273520+cryptlib=''
     
    1311558+d_bsdsetpgrp='undef'
    1312559+d_bzero='define'
    1313 +d_casti32='define'
     560+d_casti32='undef'
    1314561+d_castneg='define'
    1315562+d_charvspr='define'
     
    1387634+d_ftello='define'
    1388635+d_ftime='undef'
    1389 +d_futimes='undef'
     636+d_futimes='define'
    1390637+d_getcwd='define'
    1391638+d_getespwnam='undef'
     
    1490737+d_modfl='define'
    1491738+d_modfl_pow32_bug='undef'
    1492 +d_modflproto='undef'
     739+d_modflproto='define'
    1493740+d_mprotect='define'
    1494741+d_msg='define'
     
    1522769+d_poll='define'
    1523770+d_portable='define'
    1524 +d_procselfexe='undef'
     771+d_procselfexe='define'
    1525772+d_pthread_atfork='undef'
    1526773+d_pthread_attr_setscope='define'
     
    1730977+freetype='void'
    1731978+from=':'
    1732 +full_ar='/cross-tools/bin/arm-unknown-linux-gnu-ar'
     979+full_ar='/usr/bin/ar'
    1733980+full_csh='csh'
    1734981+full_sed='/bin/sed'
     
    18711118+incpath=''
    18721119+inews=''
    1873 +installarchlib='/usr/lib/perl5/5.8.8/arm-linux'
     1120+installarchlib='/usr/lib/perl5/5.8.8/i686-linux'
    18741121+installbin='/usr/bin'
    18751122+installhtml1dir=''
     
    18811128+installprivlib='/usr/lib/perl5/5.8.8'
    18821129+installscript='/usr/bin'
    1883 +installsitearch='/usr/lib/perl5/site_perl/5.8.8/arm-linux'
     1130+installsitearch='/usr/lib/perl5/site_perl/5.8.8/i686-linux'
    18841131+installsitebin='/usr/bin'
    18851132+installsitehtml1dir=''
     
    19061153+known_extensions='B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call GDBM_File I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File ODBM_File Opcode POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Thread Time/HiRes Unicode/Normalize XS/APItest XS/Typemap attrs re threads threads/shared'
    19071154+ksh=''
    1908 +ld='arm-unknown-linux-gnu-ld'
    1909 +lddlflags='-shared '
    1910 +ldflags=' '
     1155+ld='cc'
     1156+lddlflags='-shared -L/usr/local/lib'
     1157+ldflags=' -L/usr/local/lib'
    19111158+ldflags_uselargefiles=''
    19121159+ldlibpthname='LD_LIBRARY_PATH'
     
    19311178+locincpth='/usr/local/include /opt/local/include /usr/gnu/include /opt/gnu/include /usr/GNU/include /opt/GNU/include'
    19321179+loclibpth='/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib'
    1933 +longdblsize='8'
     1180+longdblsize='12'
    19341181+longlongsize='8'
    19351182+longsize='4'
     
    19601207+multiarch='undef'
    19611208+mv=''
    1962 +myarchname='arm-linux'
    1963 +mydomain='.ciccone'
    1964 +myhostname='spitz'
    1965 +myuname='linux spitz 2.6.16 #1 preempt mon may 1 06:14:52 cest 2006 armv5tel gnulinux '
     1209+myarchname='i686-linux'
     1210+mydomain='.jenacon.net'
     1211+myhostname='lfslivecd'
     1212+myuname='linux lfslivecd 2.6.16.14 #1 smp sat may 13 11:48:14 gmt 2006 i686 pentium3 i386 gnulinux '
    19661213+n='-n'
    19671214+need_va_copy='undef'
     
    19901237+orderlib='false'
    19911238+osname='linux'
    1992 +osvers='2.6.16'
     1239+osvers='2.6.16.14'
    19931240+otherlibdirs=' '
    19941241+package='perl5'
    1995 +pager='/bin/less -isR'
     1242+pager='/usr/bin/less -isR'
    19961243+passcat='cat /etc/passwd'
    19971244+patchlevel='8'
     
    20001247+perl=''
    20011248+perl_patchlevel=''
    2002 +perladmin='root@spitz.ciccone'
     1249+perladmin='root@lfslivecd.jenacon.net'
    20031250+perllibs='-lnsl -ldl -lm -lcrypt -lutil -lc'
    20041251+perlpath='/usr/bin/perl'
     
    20131260+privlib='/usr/lib/perl5/5.8.8'
    20141261+privlibexp='/usr/lib/perl5/5.8.8'
    2015 +procselfexe=''
     1262+procselfexe='"/proc/self/exe"'
    20161263+prototype='define'
    20171264+ptrsize='4'
     
    20221269+random_r_proto='0'
    20231270+randseedtype='long'
    2024 +ranlib='arm-unknown-linux-gnu-ranlib'
     1271+ranlib=':'
    20251272+rd_nodata='-1'
    20261273+readdir64_r_proto='0'
     
    20311278+run=''
    20321279+runnm='false'
    2033 +sPRIEUldbl='"E"'
    2034 +sPRIFUldbl='"F"'
    2035 +sPRIGUldbl='"G"'
     1280+sPRIEUldbl='"LE"'
     1281+sPRIFUldbl='"LF"'
     1282+sPRIGUldbl='"LG"'
    20361283+sPRIXU64='"LX"'
    20371284+sPRId64='"Ld"'
    2038 +sPRIeldbl='"e"'
    2039 +sPRIfldbl='"f"'
    2040 +sPRIgldbl='"g"'
     1285+sPRIeldbl='"Le"'
     1286+sPRIfldbl='"Lf"'
     1287+sPRIgldbl='"Lg"'
    20411288+sPRIi64='"Li"'
    20421289+sPRIo64='"Lo"'
    20431290+sPRIu64='"Lu"'
    20441291+sPRIx64='"Lx"'
    2045 +sSCNfldbl='"f"'
     1292+sSCNfldbl='"Lf"'
    20461293+sched_yield='sched_yield()'
    20471294+scriptdir='/usr/bin'
     
    20731320+sig_size='69'
    20741321+signal_t='void'
    2075 +sitearch='/usr/lib/perl5/site_perl/5.8.8/arm-linux'
    2076 +sitearchexp='/usr/lib/perl5/site_perl/5.8.8/arm-linux'
     1322+sitearch='/usr/lib/perl5/site_perl/5.8.8/i686-linux'
     1323+sitearchexp='/usr/lib/perl5/site_perl/5.8.8/i686-linux'
    20771324+sitebin='/usr/bin'
    20781325+sitebinexp='/usr/bin'
     
    22161463+# Configure command line arguments.
    22171464+config_arg0='Configure'
    2218 +config_args='-ds -e -Dprefix=/usr -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dpager=/bin/less -isR'
     1465+config_args='-ds -e -Dprefix=/usr -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dpager=/usr/bin/less -isR'
    22191466+config_argc=6
    22201467+config_arg1='-ds'
     
    22231470+config_arg4='-Dman1dir=/usr/share/man/man1'
    22241471+config_arg5='-Dman3dir=/usr/share/man/man3'
    2225 +config_arg6='-Dpager=/bin/less -isR'
     1472+config_arg6='-Dpager=/usr/bin/less -isR'
    22261473+PERL_REVISION=5
    22271474+PERL_VERSION=8
     
    22321479+PERL_PATCHLEVEL=
    22331480+PERL_CONFIG_SH=true
     1481diff -Naur perl-5.8.8.orig/Cross/generate_config_sh perl-5.8.8/Cross/generate_config_sh
     1482--- perl-5.8.8.orig/Cross/generate_config_sh    2006-07-22 18:17:24.000000000 -0400
     1483+++ perl-5.8.8/Cross/generate_config_sh 1969-12-31 19:00:00.000000000 -0500
     1484@@ -1,132 +0,0 @@
     1485-#!/usr/bin/perl
     1486-
     1487-##############################################################################
     1488-#
     1489-#      generate_config_sh
     1490-#              Process that takes an automatically generated config.sh
     1491-#              file and allows the environment to overload the values
     1492-#              automatically discovered by Configure on our target platform.
     1493-#
     1494-#      Author  Redvers Davies <red@criticalintegration.com>
     1495-#
     1496-##############################################################################
     1497-
     1498-my $config = shift;
     1499-
     1500-my $sys = $ENV{SYS};
     1501-
     1502-my $callbacks = {};
     1503-$callbacks->{'ar'} = [\&simple_process, ["AR", "arm-linux-ar"]];
     1504-$callbacks->{'archname'} = [\&simple_process, ["SYS", "armv4l-linux"]];
     1505-$callbacks->{'cc'} = [\&simple_process, ["CC", "arm-linux-gcc"]];
     1506-$callbacks->{'cccdlflags'} = [\&simple_process, ["CFLAGS", ""]];
     1507-$callbacks->{'ccdlflags'} = [\&simple_process, ["CFLAGS", ""]];
     1508-$callbacks->{'ccflags'} = [\&simple_process, ["CFLAGS", "-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]];
     1509-$callbacks->{'ccflags_uselargefiles'} = [\&simple_process, ["CFLAGS", "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]];
     1510-$callbacks->{'ccname'} = [\&simple_process, ["CC", "arm-linux-gcc"]];
     1511-$callbacks->{'cpp'} = [\&simple_process, ["CCP", "arm-linux-cpp"]];
     1512-$callbacks->{'cppflags'} = [\&simple_process, ["CCPFLAGS", "-fno-strict-aliasing"]];
     1513-$callbacks->{'cpprun'} = [\&simple_process_append, ["CC", "arm-linux-gcc -E", "-E"]];
     1514-$callbacks->{'cppstdin'} = [\&simple_process_append, ["CC", "arm-linux-gcc -E", "-E"]];
     1515-$callbacks->{'full_ar'} = [\&backtick, ["AR", "which $ENV{AR}", "/usr/local/arm/2.95.3/bin/arm-linux-ar"]];
     1516-$callbacks->{'ld'} = [\&simple_process, ["LD", "arm-linux-ld"]];
     1517-$callbacks->{'ldflags'} = [\&simple_process, ["LDFLAGS", ""]];
     1518-$callbacks->{'ldflags_uselargefiles'} = [\&simple_process, ["LDFLAGS", ""]];
     1519-$callbacks->{'myarchname'} = [\&simple_process, ["SYS", "armv4l-linux"]];
     1520-$callbacks->{'archlib'} = [\&library_munge, ["SYS", "armv4l-linux"]];
     1521-$callbacks->{'archlibexp'} = [\&library_munge, ["SYS", "armv4l-linux"]];
     1522-$callbacks->{'installarchlib'} = [\&library_munge, ["SYS", "armv4l-linux"]];
     1523-$callbacks->{'installsitearch'} = [\&library_munge, ["SYS", "armv4l-linux"]];
     1524-$callbacks->{'sitearch'} = [\&library_munge, ["SYS", "armv4l-linux"]];
     1525-$callbacks->{'sitearchexp'} = [\&library_munge, ["SYS", "armv4l-linux"]];
     1526-
     1527-if ($config eq "") {
     1528-       die("Please run me as generate_config_sh path/to/original/config.sh");
     1529-}
     1530-
     1531-open(FILE, "$config") || die("Unable to open $config");
     1532-
     1533-my $line_in;
     1534-while ($line_in = <FILE>) {
     1535-       if ($line_in =~ /^#/) {
     1536-               next;
     1537-       }
     1538-
     1539-       if ($line_in !~ /./) {
     1540-               next;
     1541-       }
     1542-
     1543-       $line_in =~ /^([^=]+)=(.*)/;
     1544-       my $key = $1;
     1545-       my $value = $2;
     1546-       if (ref($callbacks->{$key}) eq "ARRAY") {
     1547-               ($callbacks->{$key}[0])->($key,$value);
     1548-       } else {
     1549-               print($line_in);
     1550-       }
     1551-}
     1552-
     1553-sub backtick {
     1554-       my $key = shift;
     1555-       my $value = shift;
     1556-       my $envvar = $callbacks->{$key}->[1][0];
     1557-
     1558-       if ($ENV{$envvar}) {
     1559-               my $rawtext = `$callbacks->{$key}->[1][1]`;
     1560-               chomp($rawtext);
     1561-               print("$key=\'$rawtext\'\n");
     1562-       } else {
     1563-               print("$key=\'$callbacks->{$key}->[1][2]\'\n");
     1564-       }
     1565-}
     1566-       
     1567-
     1568-sub simple_process {
     1569-       my $key = shift;
     1570-       my $envvar = $callbacks->{$key}->[1][0];
     1571-
     1572-       if ($ENV{$envvar}) {
     1573-               print("$key=\"$ENV{$envvar}\"\n");
     1574-       } else {
     1575-               print("$key=\'$callbacks->{$key}->[1][1]\'\n");
     1576-       }
     1577-
     1578-}
     1579-
     1580-sub simple_process_append {
     1581-       my $key = shift;
     1582-       my $envvar = $callbacks->{$key}->[1][0];
     1583-
     1584-       if ($ENV{$envvar}) {
     1585-               print("$key=\"$ENV{$envvar} $callbacks->{$key}->[1][2]\"\n");
     1586-       } else {
     1587-               print("$key=\'$callbacks->{$key}->[1][1]\'\n");
     1588-       }
     1589-
     1590-}
     1591-
     1592-sub library_munge {
     1593-       my $key = shift;
     1594-       my $value = shift;
     1595-       my $envvar = $callbacks->{$key}->[1][0];
     1596-
     1597-       if ($ENV{$envvar}) {
     1598-               $value =~ s/$callbacks->{$key}->[1][1]/$ENV{$envvar}/g;
     1599-               print("$key=$value\n");
     1600-       } else {
     1601-               print("$key=$value\n");
     1602-       }
     1603-               
     1604-}
     1605-
     1606-
     1607-
     1608-
     1609-
     1610-
     1611-
     1612-
     1613-
     1614-
     1615-
     1616-
     1617diff -Naur perl-5.8.8.orig/Cross/installperl.patch perl-5.8.8/Cross/installperl.patch
     1618--- perl-5.8.8.orig/Cross/installperl.patch     2006-07-22 18:17:24.000000000 -0400
     1619+++ perl-5.8.8/Cross/installperl.patch  1969-12-31 19:00:00.000000000 -0500
     1620@@ -1,22 +0,0 @@
     1621---- ../installperl     2003-08-31 11:58:48.000000000 -0500
     1622-+++ installperl        2003-09-05 02:38:40.000000000 -0500
     1623-@@ -3,8 +3,8 @@
     1624- BEGIN {
     1625-     require 5.004;
     1626-     chdir '..' if !-d 'lib' and -d '../lib';
     1627--    @INC = 'lib';
     1628--    $ENV{PERL5LIB} = 'lib';
     1629-+#    @INC = 'lib';
     1630-+#    $ENV{PERL5LIB} = 'lib';
     1631- }
     1632-
     1633- use strict;
     1634-@@ -946,7 +946,7 @@
     1635-               print " " if (@opts);
     1636-               print "$file\n";
     1637-           }
     1638--          system("strip", @opts, $file);
     1639-+          system("XXSTRIPXX-strip", @opts, $file);
     1640-       } else {
     1641-           print "# file '$file' skipped\n" if $verbose;
     1642-       }
     1643diff -Naur perl-5.8.8.orig/Cross/Makefile perl-5.8.8/Cross/Makefile
     1644--- perl-5.8.8.orig/Cross/Makefile      2006-07-22 18:17:24.000000000 -0400
     1645+++ perl-5.8.8/Cross/Makefile   2006-07-22 18:17:35.000000000 -0400
     1646@@ -1,68 +1,62 @@
     1647-## Toplevel Makefile for cross-compilation of perl
     1648-#
     1649-## $Id: Makefile,v 1.7 2004/01/12 15:41:02 red Exp red $
     1650-
     1651-export TOPDIR=${shell pwd}
     1652-include $(TOPDIR)/config
     1653-export CFLAGS
     1654-export SYS=$(ARCH)-$(OS)
     1655-export CROSS=$(ARCH)-$(OS)-
     1656-export FULL_OPTIMIZATION = -fexpensive-optimizations -fomit-frame-pointer -O2
     1657-export OPTIMIZATION = -O2
     1658-
     1659-export CC = $(CROSS)gcc
     1660-export CXX = $(CROSS)g++
     1661-export LD = $(CROSS)ld
     1662-export STRIP = $(CROSS)strip
     1663-export AR = $(CROSS)ar
     1664-export RANLIB = $(CROSS)ranlib
     1665-
     1666-
     1667-## Optimisation work
     1668-ifeq ($(ARCH),arm)
     1669- ifdef CONFIG_TARGET_ARM_SA11X0
     1670-   ifndef Architecture
     1671-     Architecture = armv4l-strongarm
     1672-   endif
     1673-   FULL_OPTIMIZATION += -march=armv4 -mtune=strongarm1100 -mapcs-32
     1674-   OPTIMIZATION += -march=armv4 -mtune=strongarm1100 -mapcs-32
     1675- endif
     1676-endif
     1677+PWD    := $(shell pwd)
     1678+TOP    := $(shell dirname $(PWD))
     1679 
     1680-CFLAGS+=$(FULL_OPTIMIZATION)
     1681+VERSION        := $(shell awk '/define[ ]PERL_REVISION/ {printf $$3"."} /define[ ]PERL_VERSION/ {printf $$3"."} /define[ ]PERL_SUBVERSION/ {print $$3}' $(TOP)/patchlevel.h)
     1682 
     1683-all:
     1684-       @echo Please read the README file before doing anything else.
     1685+CROSS_COMPILE := arm-unknown-linux-gnu-
     1686+
     1687+ARCH   := arm
     1688+OS     := linux
     1689+
     1690+SYS    := $(ARCH)-$(OS)
     1691 
     1692-gen_patch:
     1693-       diff -Bbur ../Makefile.SH Makefile.SH > Makefile.SH.patch
     1694-       diff -Bbur ../installperl installperl > installperl.patch
     1695-
     1696-patch:
     1697-       cd .. ; if [ ! -e ./CROSS_PATCHED ] ; then \
     1698-               patch -p1 < Cross/Makefile.SH.patch; \
     1699-               patch -p1 < Cross/installperl.patch ; mv installperl installperl-patched; \
     1700-               sed -e 's/XXSTRIPXX/$(SYS)/' installperl-patched > installperl; \
     1701-               touch CROSS_PATCHED ; fi
     1702-
     1703-dry_patch:
     1704-       cd .. ; patch --dry-run -p1 < Cross/Makefile.SH.patch; \
     1705-               patch --dry-run -p1 < Cross/installperl.patch; \
     1706-
     1707-perl:
     1708-       @echo Perl cross-build directory is $(TOPDIR)
     1709-       @echo Target arch is $(SYS)
     1710-       @echo toolchain: $(CC), $(CXX), $(LD), $(STRIP), $(AR), $(RANLIB)
     1711-       @echo Optimizations: $(FULL_OPTIMIZATION)
     1712-
     1713-       $(TOPDIR)/generate_config_sh config.sh-$(SYS) > $(TOPDIR)/../config.sh
     1714-       cd $(TOPDIR)/.. ; ./Configure -S ; make depend ; make ; make more
     1715-       cd $(TOPDIR)/.. ; mkdir -p fake_config_library ; cp lib/Config.pm fake_config_library
     1716-       cd $(TOPDIR)/.. ; $(MAKE) more2 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
     1717-       cd $(TOPDIR)/.. ; $(MAKE) more3 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
     1718-       cd $(TOPDIR)/.. ; $(MAKE) more4 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
     1719-       cd $(TOPDIR)/.. ; rm -rf install_me_here
     1720-       cd $(TOPDIR)/.. ; make install-strip
     1721-       cd $(TOPDIR)/.. ; sh -x Cross/warp
     1722+AR     := $(CROSS_COMPILE)ar
     1723+CC     := $(CROSS_COMPILE)gcc
     1724+CXX    := $(CROSS_COMPILE)g++
     1725+CPP    := $(CROSS_COMPILE)cpp
     1726+LD     := $(CROSS_COMPILE)ld
     1727+RANLIB := $(CROSS_COMPILE)ranlib
     1728+STRIP  := $(CROSS_COMPILE)strip
     1729 
     1730+.PHONY: all install create-config.sh
     1731+
     1732+all:
     1733+       cd $(TOP); CC=gcc ./configure.gnu
     1734 
     1735+       # Make miniperl
     1736+       $(MAKE) -C $(TOP) miniperl
     1737+       mv -v $(TOP)/miniperl $(TOP)/miniperl-cross
     1738+       $(MAKE) -C $(TOP) clean
     1739+
     1740+       # Do the final build
     1741+       $(MAKE) create-config.sh
     1742+       cd $(TOP); ./Configure -S
     1743+       $(MAKE) -C $(TOP)
     1744+
     1745+install:
     1746+       $(MAKE) -C $(TOP) install
     1747+
     1748+create-config.sh:
     1749+       sed -e "s@\(^archname=\).*@\1'$(SYS)'@g" \
     1750+           -e "s@\(^myarchname=\).*@\1'$(SYS)'@g" \
     1751+           -e "s@\(^ar=\).*@\1'$(AR)'@g" \
     1752+           -e "s@\(^cc=\).*@\1'$(CC)'@g" \
     1753+           -e "s@\(^ccname=\).*@\1'$(CC)'@g" \
     1754+           -e "s@\(^cpp=\).*@\1'$(CPP)'@g" \
     1755+           -e "s@\(^cpprun=\).*@\1'$(CC) -E'@g" \
     1756+           -e "s@\(^cppstdin=\).*@\1'$(CC) -E'@g" \
     1757+           -e "s@\(^ld=\).*@\1'$(LD)'@g" \
     1758+           -e "s@\(^ranlib=\).*@\1'$(RANLIB)'@g" \
     1759+           -e "s@\(^full_ar=\).*@\1'$(shell which $(AR))'@g" \
     1760+           -e "s@\(^full_sed=\).*@\1'$(shell which sed)'@g" \
     1761+           -e "/^ccflags=/s@-I/usr/local/include@@g" \
     1762+           -e "/^cppflags=/s@-I/usr/local/include@@g" \
     1763+           -e "/^ldflags=/s@-L/usr/local/lib@@g" \
     1764+           -e "/^lddlflags=/s@-L/usr/local/lib@@g" \
     1765+           -e "/^archlib=/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
     1766+           -e "/^archlibexp=/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
     1767+           -e "/^installarchlib=/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
     1768+           -e "/^installsitearch=/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
     1769+           -e "/^sitearch/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
     1770+           -e "/^sitearchexp/s@$(VERSION).*@$(VERSION)/$(SYS)'@" \
     1771+           $(PWD)/config.sh-$(SYS) > $(TOP)/config.sh
     1772diff -Naur perl-5.8.8.orig/Cross/Makefile.SH.patch perl-5.8.8/Cross/Makefile.SH.patch
     1773--- perl-5.8.8.orig/Cross/Makefile.SH.patch     2006-07-22 18:17:24.000000000 -0400
     1774+++ perl-5.8.8/Cross/Makefile.SH.patch  1969-12-31 19:00:00.000000000 -0500
     1775@@ -1,189 +0,0 @@
     1776---- ../Makefile.SH
     1777-+++ ../Makefile.SH
     1778-@@ -129,18 +129,7 @@
     1779-           # INSTALL file, under "Building a shared perl library".
     1780-           # If there is no pre-existing $libperl, we don't need
     1781-           # to do anything further.
     1782--          if test -f $archlib/CORE/$libperl; then
     1783--              rm -f preload
     1784--              cat <<'EOT' > preload
     1785--#! /bin/sh
     1786--lib=$1
     1787--shift
     1788--test -r $lib && export LD_PRELOAD="$lib $LD_PRELOAD"
     1789--exec "$@"
     1790--EOT
     1791--              chmod 755 preload
     1792--              ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
     1793--          fi
     1794-+          echo linux libraries overwritten by cross-compile patches
     1795-           ;;
     1796-       os390)  test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
     1797-               ;;
     1798-@@ -389,9 +378,21 @@
     1799- .c.s:
     1800-       $(CCCMDSRC) -S $*.c
     1801-
     1802--all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
     1803--      @echo " ";
     1804--      @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
     1805-+#all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT) extra.pods $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make
     1806-+#     @echo " ";
     1807-+#     @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
     1808-+
     1809-+all: $(FIRSTMAKEFILE) miniperl$(EXE_EXT)
     1810-+      mv miniperl miniperl-arm
     1811-+      ln -s /usr/bin/perl miniperl
     1812-+
     1813-+more: extra.pods $(private) $(public)
     1814-+
     1815-+more2: $(dynamic_ext)
     1816-+
     1817-+more3: $(nonxs_ext)
     1818-+
     1819-+more4: extras.make
     1820-
     1821- .PHONY: all compile translators utilities
     1822-
     1823-@@ -401,10 +402,10 @@
     1824-       cd x2p; $(MAKE) compile;
     1825-       cd pod; $(MAKE) compile;
     1826-
     1827--translators:  miniperl$(EXE_EXT) $(CONFIGPM) FORCE
     1828-+translators:  $(CONFIGPM) FORCE
     1829-       @echo " "; echo "       Making x2p stuff"; cd x2p; $(LDLIBPTH) $(MAKE) all
     1830-
     1831--utilities:    miniperl$(EXE_EXT) $(CONFIGPM) $(plextract) lib/lib.pm FORCE
     1832-+utilities:    $(CONFIGPM) $(plextract) lib/lib.pm FORCE
     1833-       @echo " "; echo "       Making utilities"; cd utils; $(LDLIBPTH) $(MAKE) all
     1834-
     1835-
     1836-@@ -579,7 +580,7 @@
     1837-       $(CC) -o miniperl $(CLDFLAGS) \
     1838-           `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
     1839-           miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
     1840--      $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     1841-+#     $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     1842- !NO!SUBS!
     1843-               ;;
     1844-       next4*)
     1845-@@ -587,7 +588,7 @@
     1846- miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
     1847-       $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
     1848-           miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
     1849--      $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     1850-+#     $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     1851- !NO!SUBS!
     1852-               ;;
     1853-       darwin*)
     1854-@@ -754,7 +755,7 @@
     1855- # We need to autosplit in two steps because VOS can't handle so many args
     1856- #
     1857- .PHONY: preplibrary
     1858--preplibrary: miniperl$(EXE_EXT) $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
     1859-+preplibrary: $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
     1860-       @sh ./makedir lib/auto
     1861-       @echo " AutoSplitting perl library"
     1862-       $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \
     1863-@@ -763,35 +764,35 @@
     1864-               autosplit_lib_modules(@ARGV)' lib/*/*.pm
     1865-       $(MAKE) lib/re.pm
     1866-
     1867--lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary
     1868-+lib/Config.pod: config.sh configpm Porting/Glossary
     1869-       $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
     1870-
     1871- $(CONFIGPM): lib/Config.pod
     1872-
     1873--lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl $(CONFIGPM)
     1874-+lib/ExtUtils/Miniperl.pm: miniperlmain.c minimod.pl $(CONFIGPM)
     1875-       $(LDLIBPTH) ./miniperl minimod.pl > lib/ExtUtils/Miniperl.pm
     1876-
     1877- lib/re.pm: ext/re/re.pm
     1878-       cp ext/re/re.pm lib/re.pm
     1879-
     1880--$(plextract): miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p
     1881-+$(plextract): $(CONFIGPM) x2p/s2p
     1882-       @-rm -f $@
     1883-       $(LDLIBPTH) ./miniperl -I`pwd`/lib $@.PL
     1884-
     1885--x2p/s2p: miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p.PL
     1886-+x2p/s2p: $(CONFIGPM) x2p/s2p.PL
     1887-       cd x2p; $(LDLIBPTH) $(MAKE) s2p
     1888-
     1889--lib/lib.pm:   miniperl$(EXE_EXT) $(CONFIGPM)
     1890-+lib/lib.pm:   $(CONFIGPM)
     1891-       @-rm -f $@
     1892-       $(LDLIBPTH) ./miniperl -Ilib lib/lib_pm.PL
     1893-
     1894- unidatafiles $(unidatafiles): uni.data
     1895-
     1896--uni.data: miniperl$(EXE_EXT) $(CONFIGPM) lib/unicore/mktables
     1897-+uni.data: $(CONFIGPM) lib/unicore/mktables
     1898-       cd lib/unicore && $(LDLIBPTH) ../../miniperl -I../../lib mktables -w
     1899-       touch uni.data
     1900-
     1901--extra.pods: miniperl$(EXE_EXT)
     1902-+extra.pods:
     1903-       -@test -f extra.pods && rm -f `cat extra.pods`
     1904-       -@rm -f extra.pods
     1905-       -@for x in `grep -l '^=[a-z]' README.* | grep -v README.vms` ; do \
     1906-@@ -798,18 +799,7 @@
     1907- INSTALL_DEPENDENCE = all
     1908-
     1909- install.perl: $(INSTALL_DEPENDENCE) installperl
     1910--      if [ -n "$(COMPILE)" ]; \
     1911--      then \
     1912--              cd utils; $(MAKE) compile; \
     1913--              cd ../x2p; $(MAKE) compile; \
     1914--              cd ../pod; $(MAKE) compile; \
     1915--      else :; \
     1916--      fi
     1917--      $(LDLIBPTH) ./perl installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
     1918--      $(MAKE) extras.install
     1919--
     1920--install.man:  all installman
     1921--      $(LDLIBPTH) ./perl installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
     1922-+      /usr/bin/perl -Ifake_config_library -MConfig installperl $(INSTALLFLAGS) $(STRIPFLAGS)
     1923-
     1924- # XXX Experimental. Hardwired values, but useful for testing.
     1925- # Eventually Configure could ask for some of these values.
     1926-@@ -925,16 +915,16 @@
     1927- #
     1928- # DynaLoader may be needed for extensions that use Makefile.PL.
     1929-
     1930--$(DYNALOADER):        miniperl$(EXE_EXT) preplibrary FORCE
     1931-+$(DYNALOADER):        preplibrary FORCE
     1932-       @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
     1933-
     1934--d_dummy $(dynamic_ext):       miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
     1935-+d_dummy $(dynamic_ext):       preplibrary $(DYNALOADER) FORCE
     1936-       @$(LDLIBPTH) sh ext/util/make_ext dynamic $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
     1937-
     1938--s_dummy $(static_ext):        miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
     1939-+s_dummy $(static_ext):        preplibrary $(DYNALOADER) FORCE
     1940-       @$(LDLIBPTH) sh ext/util/make_ext $(STATIC) $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
     1941-
     1942--n_dummy $(nonxs_ext): miniperl$(EXE_EXT) preplibrary $(DYNALOADER) FORCE
     1943-+n_dummy $(nonxs_ext): preplibrary $(DYNALOADER) FORCE
     1944-       @$(LDLIBPTH) sh ext/util/make_ext nonxs $@ MAKE=$(MAKE) LIBPERL_A=$(LIBPERL)
     1945-
     1946- .PHONY: clean _tidy _mopup _cleaner1 _cleaner2 \
     1947-@@ -1074,7 +1064,7 @@
     1948-
     1949- test_prep_pre: preplibrary utilities $(nonxs_ext)
     1950-
     1951--test_prep: test_prep_pre miniperl$(EXE_EXT) $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL)
     1952-+test_prep: test_prep_pre $(unidatafiles) perl$(EXE_EXT) $(dynamic_ext) $(TEST_PERL_DLL)
     1953-       PERL=./perl $(MAKE) _test_prep
     1954-
     1955- _test_tty:
     1956-@@ -1167,7 +1157,7 @@
     1957-
     1958- # Can't depend on lib/Config.pm because that might be where miniperl
     1959- # is crashing.
     1960--minitest: miniperl$(EXE_EXT) lib/re.pm minitest.prep
     1961-+minitest: lib/re.pm minitest.prep
     1962-       - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
     1963-               && $(LDLIBPTH) ./perl TEST -minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
     1964-
     1965diff -Naur perl-5.8.8.orig/Cross/README perl-5.8.8/Cross/README
     1966--- perl-5.8.8.orig/Cross/README        2006-07-22 18:17:24.000000000 -0400
     1967+++ perl-5.8.8/Cross/README     1969-12-31 19:00:00.000000000 -0500
     1968@@ -1,90 +0,0 @@
     1969-Building for arm-linux
     1970-----------------------
     1971-
     1972-The files in this directory add another cross-compilation
     1973-target to the Perl buildsystem.  It was built as a part of
     1974-the Open Zaurus (http://www.openzaurus.com/) distribution.
     1975-Most / All of the arm compiler optimisations are "borrowed"
     1976-from this excellent project.
     1977-
     1978-(Further discussion about cross-compiling Perl in the top level
     1979-INSTALL file, see the section "Cross-compilation".)
     1980-
     1981-The main target is arm-linux but I have also managed to
     1982-successfully cross-compile Perl for Solaris x86 using the same
     1983-buildsystem.
     1984-
     1985-We are currently dependent on an existing working local copy of
     1986-Perl ** of the same version and revision ** which is available
     1987-as /usr/bin/perl.
     1988-
     1989-You need a working and tested cross-compiler for your build
     1990-and target combination.  The binary directory must be in
     1991-your path.
     1992-
     1993-1)     You should be reading me (README) in perl-5.x.y/Cross
     1994-
     1995-2)     Make sure you are in the Cross directory.
     1996-
     1997-3)     Edit the file 'config' to contain your target platform information.
     1998-
     1999-4)     make patch      ## This will patch the existing source-tree.
     2000-5)     make perl       ## Will make perl
     2001-
     2002-Your built Perl environment is in install_me_here/ in your build
     2003-directory.  From here you can package and deploy as you wish.
     2004-
     2005-The Obvious Ommissions
     2006-----------------------
     2007-
     2008-This does NOT perform any installation as site installation method
     2009-will be dependent on the target architecture and OS.
     2010-
     2011-make test will NOT work as the binaries and libraries will not execute
     2012-on your BUILD machine.
     2013-
     2014-Due to space limitations on the Zaurus (it's a PDA) we do not provide
     2015-documentation in the core - Therefore man pages are not even generated.
     2016-
     2017-Other Targets (For Developers)
     2018-------------------------------
     2019-
     2020-It is possible to extend the cross-compilation to other targets.
     2021-We have sucessfully compiled for the target solaris2.8/x86
     2022-on linux/x86 build system.
     2023-
     2024-To attempt a cross-compile for another target using the methods
     2025-in this directory:
     2026-
     2027-1)     Copy the Perl source code onto your TARGET machine.
     2028-2)     Execute sh Configure as normal and configure as required,
     2029-       do not "make".
     2030-3)     Copy the config.sh file that is generated to your BUILD
     2031-       machine and place it in the Cross directory with the
     2032-       filename config.sh-ARCH-OS.  For example,
     2033-       config.sh-i386-pc-solaris2.8.  For the appropriate ARCH
     2034-       and OS please refer to your cross-compiler documentation.
     2035-4)     Edit Cross/config to reflect your new target and continue
     2036-       with build as above.
     2037-
     2038-Should you wish to produce optimised binaries for different
     2039-architectures you can add the appropriate compiler flags to
     2040-the Makefile in a new ifeq ($(ARCH),...) ... endif block.
     2041-
     2042-
     2043-Please refer to your cross-compiler documentation for details.
     2044-
     2045-
     2046-       Note that the Cross/ directory is also used by a different
     2047-       cross-compilation setup described in the INSTALL file, and
     2048-       executed by Configure.  There should be no conflicts since
     2049-       it is unlikely both that cross-compilation setups are used
     2050-       simultaneously.
     2051-
     2052-Enjoy!
     2053-
     2054-References
     2055-----------
     2056-Redvers Davies <red@criticalintegration.com>
     2057-Open Zaurus http://www.openzaurus.org/
     2058-Perl OZ Packages http://www.criticalintegration.com/perl-oz/
     2059diff -Naur perl-5.8.8.orig/Cross/TODO perl-5.8.8/Cross/TODO
     2060--- perl-5.8.8.orig/Cross/TODO  2006-07-22 18:17:24.000000000 -0400
     2061+++ perl-5.8.8/Cross/TODO       1969-12-31 19:00:00.000000000 -0500
     2062@@ -1 +0,0 @@
     2063-Provide a better sandbox for building additional XS libraries.
     2064diff -Naur perl-5.8.8.orig/Cross/warp perl-5.8.8/Cross/warp
     2065--- perl-5.8.8.orig/Cross/warp  2006-07-22 18:17:24.000000000 -0400
     2066+++ perl-5.8.8/Cross/warp       1969-12-31 19:00:00.000000000 -0500
     2067@@ -1,14 +0,0 @@
     2068-#!/bin/sh -x
     2069-
     2070-## This script contains an rm -rf.  This may alarm you.
     2071-## These directories need to be reccursively deleted.
     2072-## I don't see any method of making "Bad Things"[tm]
     2073-## Happen.  But we don't run buildroot as root do we? :-)
     2074-
     2075-for f in `find lib -name install_me_here`;do
     2076-cp -r $f/* ./install_me_here/
     2077-done
     2078-
     2079-for f in `find lib -name install_me_here`;do
     2080-rm -rf $f
     2081-done
    22342082diff -Naur perl-5.8.8.orig/ext/util/make_ext perl-5.8.8/ext/util/make_ext
    2235 --- perl-5.8.8.orig/ext/util/make_ext   2002-05-02 19:32:21.000000000 -0400
    2236 +++ perl-5.8.8/ext/util/make_ext        2006-06-16 17:02:55.000000000 -0400
     2083--- perl-5.8.8.orig/ext/util/make_ext   2006-07-22 18:17:24.000000000 -0400
     2084+++ perl-5.8.8/ext/util/make_ext        2006-07-22 18:17:35.000000000 -0400
    22372085@@ -119,7 +119,7 @@
    22382086 esac
     
    22452093        if test -f Makefile.SH; then
    22462094diff -Naur perl-5.8.8.orig/installman perl-5.8.8/installman
    2247 --- perl-5.8.8.orig/installman  2004-05-31 10:37:47.000000000 -0400
    2248 +++ perl-5.8.8/installman       2006-06-16 17:02:55.000000000 -0400
     2095--- perl-5.8.8.orig/installman  2006-07-22 18:17:24.000000000 -0400
     2096+++ perl-5.8.8/installman       2006-07-22 18:17:35.000000000 -0400
    22492097@@ -1,5 +1,4 @@
    22502098 #!./perl -w
     
    22542102 use Getopt::Long;
    22552103diff -Naur perl-5.8.8.orig/installperl perl-5.8.8/installperl
    2256 --- perl-5.8.8.orig/installperl 2006-01-28 10:35:28.000000000 -0500
    2257 +++ perl-5.8.8/installperl      2006-06-16 17:02:55.000000000 -0400
     2104--- perl-5.8.8.orig/installperl 2006-07-22 18:17:24.000000000 -0400
     2105+++ perl-5.8.8/installperl      2006-07-22 18:17:35.000000000 -0400
    22582106@@ -3,8 +3,6 @@
    22592107 BEGIN {
     
    22662114 use strict;
    22672115diff -Naur perl-5.8.8.orig/lib/unicore/Makefile perl-5.8.8/lib/unicore/Makefile
    2268 --- perl-5.8.8.orig/lib/unicore/Makefile        2002-03-27 16:21:59.000000000 -0500
    2269 +++ perl-5.8.8/lib/unicore/Makefile     2006-06-16 17:02:55.000000000 -0400
     2116--- perl-5.8.8.orig/lib/unicore/Makefile        2006-07-22 18:17:25.000000000 -0400
     2117+++ perl-5.8.8/lib/unicore/Makefile     2006-07-22 18:17:35.000000000 -0400
    22702118@@ -1,11 +1,11 @@
    22712119 all:
     
    22832131 clean:
    22842132        rm -f *.pl */*.pl
     2133diff -Naur perl-5.8.8.orig/Makefile.SH perl-5.8.8/Makefile.SH
     2134--- perl-5.8.8.orig/Makefile.SH 2006-07-22 18:17:25.000000000 -0400
     2135+++ perl-5.8.8/Makefile.SH      2006-07-22 18:17:35.000000000 -0400
     2136@@ -591,7 +591,7 @@
     2137        $(CC) -o miniperl $(CLDFLAGS) \
     2138            `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
     2139            miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
     2140-       $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     2141+       $(LDLIBPTH) ./miniperl-cross -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     2142 !NO!SUBS!
     2143                ;;
     2144        next4*)
     2145@@ -599,7 +599,7 @@
     2146 miniperl: $& miniperlmain$(OBJ_EXT) $(LIBPERL) opmini$(OBJ_EXT)
     2147        $(CC) -o miniperl `echo $(obj) | sed 's/ op$(OBJ_EXT) / /'` \
     2148            miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) perl$(OBJ_EXT) $(libs)
     2149-       $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     2150+       $(LDLIBPTH) ./miniperl-cross -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     2151 !NO!SUBS!
     2152                ;;
     2153        darwin*)
     2154@@ -620,7 +620,7 @@
     2155        -@rm -f miniperl.xok
     2156        $(CC) $(CLDFLAGS) $(NAMESPACEFLAGS) -o miniperl \
     2157            miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs)
     2158-       $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     2159+       $(LDLIBPTH) ./miniperl-cross -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     2160 !NO!SUBS!
     2161                ;;
     2162        *)
     2163@@ -629,7 +629,7 @@
     2164        -@rm -f miniperl.xok
     2165        $(LDLIBPTH) $(CC) $(CLDFLAGS) -o miniperl \
     2166            miniperlmain$(OBJ_EXT) opmini$(OBJ_EXT) $(LLIBPERL) $(libs)
     2167-       $(LDLIBPTH) ./miniperl -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     2168+       $(LDLIBPTH) ./miniperl-cross -w -Ilib -MExporter -e '<?>' || $(MAKE) minitest
     2169 !NO!SUBS!
     2170                ;;
     2171        esac
     2172@@ -769,38 +769,38 @@
     2173 preplibrary: miniperl$(EXE_EXT) $(CONFIGPM) lib/lib.pm $(PREPLIBRARY_LIBPERL)
     2174        @sh ./makedir lib/auto
     2175        @echo " AutoSplitting perl library"
     2176-       $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \
     2177+       $(LDLIBPTH) ./miniperl-cross -Ilib -e 'use AutoSplit; \
     2178                autosplit_lib_modules(@ARGV)' lib/*.pm
     2179-       $(LDLIBPTH) ./miniperl -Ilib -e 'use AutoSplit; \
     2180+       $(LDLIBPTH) ./miniperl-cross -Ilib -e 'use AutoSplit; \
     2181                autosplit_lib_modules(@ARGV)' lib/*/*.pm
     2182        $(MAKE) lib/re.pm
     2183 
     2184 lib/Config.pod: config.sh miniperl$(EXE_EXT) configpm Porting/Glossary
     2185-       $(LDLIBPTH) ./miniperl -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
     2186+       $(LDLIBPTH) ./miniperl-cross -Ilib configpm --heavy=lib/Config_heavy.pl lib/Config.pm
     2187 
     2188 $(CONFIGPM): lib/Config.pod
     2189 
     2190 lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl$(EXE_EXT) minimod.pl $(CONFIGPM)
     2191-       $(LDLIBPTH) ./miniperl minimod.pl > lib/ExtUtils/Miniperl.pm
     2192+       $(LDLIBPTH) ./miniperl-cross minimod.pl > lib/ExtUtils/Miniperl.pm
     2193 
     2194 lib/re.pm: ext/re/re.pm
     2195        cp ext/re/re.pm lib/re.pm
     2196 
     2197 $(plextract):  miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p
     2198        @-rm -f $@
     2199-       $(LDLIBPTH) ./miniperl -I`pwd`/lib $@.PL
     2200+       $(LDLIBPTH) ./miniperl-cross -I`pwd`/lib $@.PL
     2201 
     2202 x2p/s2p: miniperl$(EXE_EXT) $(CONFIGPM) x2p/s2p.PL
     2203        cd x2p; $(LDLIBPTH) $(MAKE) s2p
     2204 
     2205 lib/lib.pm:    miniperl$(EXE_EXT) $(CONFIGPM)
     2206        @-rm -f $@
     2207-       $(LDLIBPTH) ./miniperl -Ilib lib/lib_pm.PL
     2208+       $(LDLIBPTH) ./miniperl-cross -Ilib lib/lib_pm.PL
     2209 
     2210 unidatafiles $(unidatafiles): uni.data
     2211 
     2212 uni.data: miniperl$(EXE_EXT) $(CONFIGPM) lib/unicore/mktables
     2213-       cd lib/unicore && $(LDLIBPTH) ../../miniperl -I../../lib mktables -w
     2214+       cd lib/unicore && $(LDLIBPTH) ../../miniperl-cross -I../../lib mktables -w
     2215        touch uni.data
     2216 
     2217 extra.pods: miniperl$(EXE_EXT)
     2218@@ -829,7 +829,7 @@
     2219        no-install install.perl install.man install.html
     2220 
     2221 META.yml:      Porting/makemeta Porting/Maintainers.pl Porting/Maintainers.pm
     2222-       $(LDLIBPTH) ./miniperl -Ilib Porting/makemeta
     2223+       $(LDLIBPTH) ./miniperl-cross -Ilib Porting/makemeta
     2224 
     2225 install-strip:
     2226        $(MAKE) STRIPFLAGS=-s install DESTDIR="$(DESTDIR)"
     2227@@ -857,17 +857,17 @@
     2228                cd ../pod; $(MAKE) compile; \
     2229        else :; \
     2230        fi
     2231-       $(LDLIBPTH) ./perl installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
     2232+       $(LDLIBPTH) ./miniperl-cross -Ilib installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
     2233        $(MAKE) extras.install
     2234 
     2235 install.man:   all installman
     2236-       $(LDLIBPTH) ./perl installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
     2237+       $(LDLIBPTH) ./miniperl-cross -Ilib installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
     2238 
     2239 # XXX Experimental. Hardwired values, but useful for testing.
     2240 # Eventually Configure could ask for some of these values.
     2241 install.html: all installhtml
     2242        -@test -f README.vms && cd vms && $(LNS) ../README.vms README_vms.pod && cd ..
     2243-       $(LDLIBPTH) ./perl installhtml   \
     2244+       $(LDLIBPTH) ./miniperl-cross -Ilib installhtml   \
     2245       --podroot=. --podpath=. --recurse  \
     2246       --htmldir=$(privlib)/html   \
     2247       --htmlroot=$(privlib)/html  \
     2248@@ -1173,7 +1173,7 @@
     2249 # Targets for UTF16 testing:
     2250 
     2251 minitest.utf16: minitest.prep
     2252-       - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
     2253+       - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl-cross$(EXE_EXT) perl$(EXE_EXT)) \
     2254                && $(LDLIBPTH) ./perl TEST -minitest -utf16 base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
     2255 
     2256 test.utf16 check.utf16: test_prep
     2257@@ -1239,7 +1239,7 @@
     2258 # Can't depend on lib/Config.pm because that might be where miniperl
     2259 # is crashing.
     2260 minitest: miniperl$(EXE_EXT) lib/re.pm minitest.prep
     2261-       - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl$(EXE_EXT) perl$(EXE_EXT)) \
     2262+       - cd t && (rm -f perl$(EXE_EXT); $(LNS) ../miniperl-cross$(EXE_EXT) perl$(EXE_EXT)) \
     2263                && $(LDLIBPTH) ./perl TEST -minitest base/*.t comp/*.t cmd/*.t run/*.t io/*.t op/*.t uni/*.t </dev/tty
     2264 
     2265 # Test via harness
     2266diff -Naur perl-5.8.8.orig/MANIFEST perl-5.8.8/MANIFEST
     2267--- perl-5.8.8.orig/MANIFEST    2006-07-22 18:17:25.000000000 -0400
     2268+++ perl-5.8.8/MANIFEST 2006-07-22 18:17:35.000000000 -0400
     2269@@ -33,15 +33,8 @@
     2270 configure.gnu          Crude emulation of GNU configure
     2271 cop.h                  Control operator header
     2272 Copying                        The GNU General Public License
     2273-Cross/config           Cross-compilation
     2274 Cross/config.sh-arm-linux      Cross-compilation
     2275-Cross/generate_config_sh       Cross-compilation
     2276-Cross/installperl.patch                Cross-compilation
     2277 Cross/Makefile         Cross-compilation
     2278-Cross/Makefile.SH.patch        Cross-compilation
     2279-Cross/README           Cross-compilation
     2280-Cross/TODO             Cross-compilation
     2281-Cross/warp             Cross-compilation
     2282 cv.h                   Code value header
     2283 cygwin/cygwin.c                Additional code for Cygwin port
     2284 cygwin/ld2.in          ld wrapper template for Cygwin port
    22852285diff -Naur perl-5.8.8.orig/pod/Makefile.SH perl-5.8.8/pod/Makefile.SH
    2286 --- perl-5.8.8.orig/pod/Makefile.SH     2005-10-25 07:41:47.000000000 -0400
    2287 +++ perl-5.8.8/pod/Makefile.SH  2006-06-16 17:02:55.000000000 -0400
     2286--- perl-5.8.8.orig/pod/Makefile.SH     2006-07-22 18:17:25.000000000 -0400
     2287+++ perl-5.8.8/pod/Makefile.SH  2006-07-22 18:17:35.000000000 -0400
    22882288@@ -63,7 +63,7 @@
    22892289            --podroot=.. --podpath=pod:lib:ext:vms \
     
    22962296 
    22972297diff -Naur perl-5.8.8.orig/utils/Makefile perl-5.8.8/utils/Makefile
    2298 --- perl-5.8.8.orig/utils/Makefile      2003-11-30 16:49:48.000000000 -0500
    2299 +++ perl-5.8.8/utils/Makefile   2006-06-16 17:02:55.000000000 -0400
     2298--- perl-5.8.8.orig/utils/Makefile      2006-07-22 18:17:26.000000000 -0400
     2299+++ perl-5.8.8/utils/Makefile   2006-07-22 18:17:35.000000000 -0400
    23002300@@ -1,5 +1,5 @@
    23012301 
     
    23062306 # Files to be built with variable substitution after miniperl is
    23072307diff -Naur perl-5.8.8.orig/x2p/Makefile.SH perl-5.8.8/x2p/Makefile.SH
    2308 --- perl-5.8.8.orig/x2p/Makefile.SH     2005-09-21 09:38:24.000000000 -0400
    2309 +++ perl-5.8.8/x2p/Makefile.SH  2006-06-16 17:02:55.000000000 -0400
     2308--- perl-5.8.8.orig/x2p/Makefile.SH     2006-07-22 18:17:26.000000000 -0400
     2309+++ perl-5.8.8/x2p/Makefile.SH  2006-07-22 18:17:35.000000000 -0400
    23102310@@ -172,7 +172,7 @@
    23112311 # These should be automatically generated
Note: See TracChangeset for help on using the changeset viewer.