Cross Compiling: php for SuperHitashi4 (sh4)
| From: | Andreï V. FOMITCHEV | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Cross Compiling: php for SuperHitashi4 (sh4) | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-12649@lists.php.net to get a copy of this message | ||
Hi,
Under Linux (RedHat 8.0), I try to compile php-4.3.3 in cgi for sh4. I use binutils-sh-linux-2.13.90.0.18-1.i386, gcc-sh-linux-3.2.3-3.i386 and libgcj-sh-linux-3.2.3-3.i386, tools for make cross compiling. My problem is
$ CC=sh4-linux-gcc CFLAGS=" -O2 -ml -m4 " ./configure --prefix=/mnt/nfs_sh4/php --build=i686-linux --host=sh4-linux --enable-cli --enable-sockets --enable-mime-magic --with-mysql=/mnt/nfs_sh4/mysql --with-dom=/usr/sh4-linux/include/libxml2 --with-zlib=/usr/sh-linux --without-pear --with-pgsql=/mnt/nfs_sh4/postgresql_7.4.1 --with-tsrm-pthreads
(...)
checking for fopencookie... yes
configure: error: can not run test program while cross compiling
How to disable the creation of test programs?
--
Andreï V. FOMITCHEV [Quand faut-il arrêter l'informatique]
Software R&D Engineer [Lorsque, dans un kilo, on trouve 1024 grammes]
Odixion SAS, FRANCE