Skip to content

Instantly share code, notes, and snippets.

@miettal
Created July 4, 2015 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miettal/a3595c488d5c0ea4e7ee to your computer and use it in GitHub Desktop.
Save miettal/a3595c488d5c0ea4e7ee to your computer and use it in GitHub Desktop.
build_php5-cgi_for_armadillo.sh
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