From: Andre Noll Date: Thu, 5 Sep 2013 03:51:19 +0000 (+0000) Subject: INSTALL: Add an example for cross-compiling. X-Git-Tag: v0.5.1~1^2~56 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=3097e583cdfd2213b3c2e1c80c6aa78a37549f76;p=paraslash.git INSTALL: Add an example for cross-compiling. These are the commands I use to compile paraslash on the raspberry pi. --- 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