Doxify error2.c and add GPL header.
[paraslash.git] / INSTALL
diff --git a/INSTALL b/INSTALL
index 0f4c18b647e0e6c2fc921bbded745275458d70c7..9917afb681b23fa90405f671beed0c640c957d00 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