summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/Cross
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-04-07 21:33:13 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-04-07 21:33:13 +0000
commit0483bc835ac9d7a98c6221c31164adab28d45012 (patch)
tree4c0792a10e62acfdd0c306897722ecb5fd30821b /gnu/usr.bin/perl/Cross
parent06b4a8c77def9992257264115d36deba7767935f (diff)
merge local changes into perl-5.8.3
Diffstat (limited to 'gnu/usr.bin/perl/Cross')
-rw-r--r--gnu/usr.bin/perl/Cross/Makefile16
-rw-r--r--gnu/usr.bin/perl/Cross/README5
2 files changed, 14 insertions, 7 deletions
diff --git a/gnu/usr.bin/perl/Cross/Makefile b/gnu/usr.bin/perl/Cross/Makefile
index 4e93f98644b..bef9f385b6e 100644
--- a/gnu/usr.bin/perl/Cross/Makefile
+++ b/gnu/usr.bin/perl/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.2 2003/12/03 03:02:24 millert Exp $
-export TOPDIR?=${shell pwd}
+export TOPDIR=${shell pwd}
include $(TOPDIR)/config
export CFLAGS
export SYS=$(ARCH)-$(OS)
@@ -39,9 +39,15 @@ 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
+
+dry_patch:
+ cd .. ; patch --dry-run -p1 < Cross/Makefile.SH.patch; \
+ patch --dry-run -p1 < Cross/installperl.patch; \
perl:
@echo Perl cross-build directory is $(TOPDIR)
diff --git a/gnu/usr.bin/perl/Cross/README b/gnu/usr.bin/perl/Cross/README
index 79d2b7d1756..51da64964ee 100644
--- a/gnu/usr.bin/perl/Cross/README
+++ b/gnu/usr.bin/perl/Cross/README
@@ -19,7 +19,7 @@ You need a working and tested cross-compiler for your build
and target combination. The binary directory must be in
your path.
-1) You should be reading me (README) in perl-5.8.2/Cross
+1) You should be reading me (README) in perl-5.8.3/Cross
2) Make sure you are in the Cross directory.
@@ -68,6 +68,7 @@ Should you wish to produce optimised binaries for different
architectures you can add the appropriate compiler flags to
the Makefile in a new ifeq ($(ARCH),...) ... endif block.
+
Please refer to your cross-compiler documentation for details.
@@ -83,4 +84,4 @@ References
----------
Redvers Davies <red@criticalintegration.com>
Open Zaurus http://www.openzaurus.org/
-Perl OZ Packages http://www.openzaurus.org/official/testing/feed/
+Perl OZ Packages http://www.criticalintegration.com/perl-oz/