summaryrefslogtreecommitdiff
path: root/README.solaris
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2014-01-15 06:39:44 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-30 17:49:59 -0300
commit03224839c4f734054d726864f9b4f650ce42aca2 (patch)
tree2c767f0e4059d7c462ea591df41fe36bb935c24d /README.solaris
parent0d460bac58c2b8f6389a7f1571ac709effecf3fa (diff)
downloadperl-03224839c4f734054d726864f9b4f650ce42aca2.tar.gz
README.solaris: Add a section for cross-compilation
Diffstat (limited to 'README.solaris')
-rw-r--r--README.solaris14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.solaris b/README.solaris
index 0e6ffd9a9f..245ded8c5e 100644
--- a/README.solaris
+++ b/README.solaris
@@ -530,6 +530,20 @@ to catch all tmpfs situations.
See L<perlhpux/"nss_delete core dump from op/pwent or op/grent">.
+=head1 CROSS-COMPILATION
+
+Nothing too unusual here. You can easily do this if you have a
+cross-compiler available; A usual Configure invocation when targetting a
+Solaris x86 looks something like this:
+
+ sh ./Configure -des -Dusecrosscompile \
+ -Dcc=i386-pc-solaris2.11-gcc \
+ -Dsysroot=$SYSROOT \
+ -Alddlflags=" -Wl,-z,notext" \
+ -Dtargethost=... # The usual cross-compilation options
+
+The lddlflags addition is the only abnormal bit.
+
=head1 PREBUILT BINARIES OF PERL FOR SOLARIS.
You can pick up prebuilt binaries for Solaris from