From 3097e583cdfd2213b3c2e1c80c6aa78a37549f76 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 5 Sep 2013 03:51:19 +0000 Subject: [PATCH] INSTALL: Add an example for cross-compiling. These are the commands I use to compile paraslash on the raspberry pi. --- INSTALL | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/INSTALL b/INSTALL index 0f4c18b6..9917afb6 100644 --- 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 -- 2.39.2