-
-
Save kost/1494305 to your computer and use it in GitHub Desktop.
build ruby for arm platform (e.g. for amazon kindle)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "deb http://emdebian.org/debian/ lenny main" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnueabi libc6-dev-armel-cross | |
cd /path/to/ruby/1.8.7/sources | |
autoconf | |
CFLAGS="--static" LDFLAGS="--static" CC="arm-linux-gnueabi-gcc" ac_cv_func_setpgrp_void=yes ac_cv_func_isinf=no ac_cv_func_isnan=no ac_cv_func_finite=no CROSS_COMPILING=1 ./configure --host="arm-linux-gnueabi" --prefix=/mnt/us/opt | |
make | |
make install | |
# now you have to copy contents of /mnt/us/opt to your device and everything should work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment