This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Correct code-like snippet in documentation
[perl5.git] / README.riscos
CommitLineData
ffe25ee3
B
1# vim: syntax=pod
2
7ee146b1
AW
3If you read this file _as_is_, just ignore the funny characters you
4see. It is written in the POD format (see pod/perlpod.pod) which is
5specifically designed to be readable as is.
6
7=head1 NAME
8
de2902a6 9perlriscos - Perl version 5 for RISC OS
7ee146b1
AW
10
11=head1 DESCRIPTION
12
b5c148cc 13This document gives instructions for building Perl for RISC OS. It is
7ee146b1
AW
14complicated by the need to cross compile. There is a binary version of
15perl available from L<http://www.cp15.org/perl/> which you may wish to
16use instead of trying to compile it yourself.
17
18=head1 BUILD
19
20You need an installed and working gccsdk cross compiler
21L<http://gccsdk.riscos.info/> and REXEN
22L<http://www.cp15.org/programming/>
23
24Firstly, copy the source and build a native copy of perl for your host
25system.
26Then, in the source to be cross compiled:
27
28=over 4
29
f094a618 30=item 1.
7ee146b1
AW
31
32 $ ./Configure
33
f094a618 34=item 2.
7ee146b1
AW
35
36Select the riscos hint file. The default answers for the rest of the
37questions are usually sufficient.
38
b5c148cc
RGS
39Note that, if you wish to run Configure non-interactively (see the INSTALL
40document for details), to have it select the correct hint file, you'll
41need to provide the argument -Dhintfile=riscos on the Configure
42command-line.
43
f094a618 44=item 3.
7ee146b1
AW
45
46 $ make miniperl
47
f094a618 48=item 4.
7ee146b1
AW
49
50This should build miniperl and then fail when it tries to run it.
51
f094a618 52=item 5.
7ee146b1
AW
53
54Copy the miniperl executable from the native build done earlier to
55replace the cross compiled miniperl.
56
f094a618 57=item 6.
7ee146b1
AW
58
59 $ make
60
f094a618 61=item 7.
7ee146b1
AW
62
63This will use miniperl to complete the rest of the build.
64
65=back
66
67=head1 AUTHOR
68
69Alex Waugh <alex@alexwaugh.com>