INSTALL: Add an example for cross-compiling.
authorAndre Noll <maan@systemlinux.org>
Thu, 5 Sep 2013 03:51:19 +0000 (03:51 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 1 Dec 2013 10:47:32 +0000 (11:47 +0100)
These are the commands I use to compile paraslash on the raspberry pi.

INSTALL

diff --git a/INSTALL b/INSTALL
index 0f4c18b..9917afb 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -8,6 +8,23 @@ From git:
 
        ./autogen.sh && sudo make install
 
+Example for cross-compiling:
+
+       export CROSS_COMPILE='armv6j-hardfloat-linux-gnueabi-'
+       export PATH="/usr/cross/arm/bin:$PATH"
+       export CC=${CROSS_COMPILE}gcc
+
+       export LDFLAGS='
+               -L/usr/sysroot/arm/lib
+               -L/usr/sysroot/arm/usr/lib
+               -L/usr/sysroot/arm/usr/lib/glibc/lib
+               -L/usr/sysroot/arm/usr/local/ssl/lib
+       '
+       autoconf
+       autoheader
+       ./configure --host=arm-linux-gnueabi --prefix /usr/sysroot/arm/usr/local
+       make CROSS_COMPILE=$CROSS_COMPILE
+
 For details see the user manual:
 
        http://paraslash.systemlinux.org/manual.html