aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-24 11:54:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-24 11:54:42 +0000
commit53ac8004e74d330371c6318d6e91d247729c296f (patch)
treef47f2eae6ff51931644165b8f9bad9557ce1bd79 /docs
parent7b76499e8296780c635105b8818c67feccdb8bb7 (diff)
added a section about cross compiling that Jim Duey wrote down for us
Diffstat (limited to 'docs')
-rw-r--r--docs/INSTALL48
1 files changed, 45 insertions, 3 deletions
diff --git a/docs/INSTALL b/docs/INSTALL
index 251961093..fc237c465 100644
--- a/docs/INSTALL
+++ b/docs/INSTALL
@@ -8,9 +8,12 @@
Curl has been compiled and built on numerous different operating systems.
-If you're using Windows (95/98/NT/ME/2000 or whatever), VMS, RISC OS or OS/2,
-you should continue reading from one the paragraphs further down. All other
-systems should be capable of being installed as described below.
+Most systems build curl the same way (unix-style). Continue reading below for
+more details if you're one of them.
+
+If you're using Windows (95/98/NT/ME/2000/XP or similar), VMS, RISC OS or OS/2
+or cross-compile, you should continue reading from one the paragraphs further
+down.
UNIX
====
@@ -325,6 +328,45 @@ VMS
13-jul-2001
N. Baggus
+CROSS COMPILE
+=============
+
+ (This section was graciously brought to us by Jim Duey, 23-oct-2001)
+
+ Download and unpack the cURL package. Version should be 7.9.1 or later.
+
+ 'cd' to the new directory. (ie. curl-7.9.1-pre4)
+
+ Set environment variables to point to the cross-compile toolchain and call
+ configure with any options you need. Be sure and specify the '--host' and
+ '--build' parameters at configuration time. The following script is an
+ example of cross-compiling for the IBM 405GP PowerPC processor using the
+ toolchain from MonteVista for Hardhat Linux.
+
+ (begin script)
+
+ #! /bin/sh
+
+ export PATH=$PATH:/opt/hardhat/devkit/ppc/405/bin
+ export CPPFLAGS="-I/opt/hardhat/devkit/ppc/405/target/usr/include"
+ export AR=ppc_405-ar
+ export AS=ppc_405-as
+ export LD=ppc_405-ld
+ export RANLIB=ppc_405-ranlib
+ export CC=ppc_405-gcc
+ export NM=ppc_405-nm
+
+ configure --target=powerpc-hardhat-linux \
+ --host=powerpc-hardhat-linux \
+ --build=i586-pc-linux-gnu \
+ --prefix=/opt/hardhat/devkit/ppc/405/target/usr/local \
+ --exec-prefix=/usr/local
+
+ (end script)
+
+ The '--prefix' parameter specifies where cURL will be installed. If
+ 'configure' completes successfully, do 'make' and 'make install' as usual.
+
PORTS
=====
This is a probably incomplete list of known hardware and operating systems