I am trying to cross compile php for hand and have good progress, but I am completely stuck where it wants to run php (I donβt know why). since this is a binary key, not intel (my building platform), it will not work:
/bin/sh: /path-to-build/sapi/cli/php: cannot execute binary file
How can i fix this? The script configuration realized that I was cross-compiling, but did nothing with it (from the configuration log):
checking whether the C compiler (/path-to-compiler/arm-none-linux-gnueabi-gcc) is a cross-compiler... yes
I am compiling php-5.3.6 using the configure command line:
export CC=/path-to-cc/arm-none-linux-gnueabi-gcc ../configure --prefix=/prefix-path/ --host=arm-none-linux-gnueabi --disable-libxml --disable-dom --disable-openssl --without-iconv --without-openssl --disable-simplexml --disable-xml --disable-xmlreader --disable-xmlwriter --without-pear --without-sqlite --without-sqlite3 --disable-pdo --without-pdo-sqlite
source share