Created
July 4, 2015 07:52
-
-
Save miettal/a3595c488d5c0ea4e7ee to your computer and use it in GitHub Desktop.
build_php5-cgi_for_armadillo.sh
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
wget http://http.debian.net/debian/pool/main/p/php5/php5_5.3.3.orig.tar.gz | |
wget http://http.debian.net/debian/pool/main/p/php5/php5_5.3.3-7+squeeze19.diff.gz | |
tar zxvf php5_5.3.3.orig.tar.gz | |
gzip -dv php5_5.3.3-7+squeeze19.diff.gz | |
patch php5_5.3.3 < php5_5.3.3-7+squeeze19.diff | |
mkdir cross-build | |
mkdir cross-root | |
cd cross-build | |
CXX=arm-linux-gnueabi-g++ \ | |
AR=arm-linux-gnueabi-ar \ | |
LD=arm-linux-gnueabi-ld \ | |
RANLIB=arm-none-linux-gnueabi-ranlib \ | |
CC=arm-linux-gnueabi-gcc \ | |
CFLAGS=-Os \ | |
../php-5.3.3/configure --host=arm-linux-gnueabi \ | |
--prefix=`pwd`/../cross-root \ | |
--disable-all | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment