From 03224839c4f734054d726864f9b4f650ce42aca2 Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Wed, 15 Jan 2014 06:39:44 -0300 Subject: [PATCH] README.solaris: Add a section for cross-compilation --- README.solaris | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.solaris b/README.solaris index 0e6ffd9..245ded8 100644 --- a/README.solaris +++ b/README.solaris @@ -530,6 +530,20 @@ to catch all tmpfs situations. See L. +=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 -- 2.7.4