diff options
author | Redvers Davies <red@criticalintegration.com> | 2003-12-22 03:11:34 -0500 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2003-12-27 22:55:35 +0000 |
commit | e4568ebb449242658dc89dca2cbff0f024acf76c (patch) | |
tree | c325ec64bad57e537e9eca6ddde59f3de950c371 /Cross/Makefile | |
parent | b0e74086c793b91e11f2cb4f6e6cda6343532701 (diff) | |
download | perl-e4568ebb449242658dc89dca2cbff0f024acf76c.tar.gz |
Cross compilation patches for arm.
Message-Id: <1072098653.4789.6.camel@ragefire>
Date: Mon, 22 Dec 2003 08:11:34 -0500
p4raw-id: //depot/perl@21985
Diffstat (limited to 'Cross/Makefile')
-rw-r--r-- | Cross/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Cross/Makefile b/Cross/Makefile index 4e93f98644..da9ce10693 100644 --- a/Cross/Makefile +++ b/Cross/Makefile @@ -1,8 +1,8 @@ ## Toplevel Makefile for cross-compilation of perl # -## $Id: Makefile,v 1.4 2003/09/05 00:48:19 red Exp red $ +## $Id: Makefile,v 1.5 2003/12/12 00:48:19 red Exp red $ -export TOPDIR?=${shell pwd} +export TOPDIR=${shell pwd} include $(TOPDIR)/config export CFLAGS export SYS=$(ARCH)-$(OS) @@ -39,9 +39,11 @@ gen_patch: diff -Bbur ../installperl installperl > installperl.patch patch: - cd .. ; patch -p1 < Cross/Makefile.SH.patch - cd .. ; patch -p1 < Cross/installperl.patch ; mv installperl installperl-patched - cd .. ; sed -e 's/XXSTRIPXX/$(SYS)/' installperl-patched > installperl + cd .. ; if [ ! -e ./CROSS_PATCHED ] ; then \ + patch -p1 < Cross/Makefile.SH.patch; \ + patch -p1 < Cross/installperl.patch ; mv installperl installperl-patched; \ + sed -e 's/XXSTRIPXX/$(SYS)/' installperl-patched > installperl; \ + touch CROSS_PATCHED ; fi perl: @echo Perl cross-build directory is $(TOPDIR) |