Ich versuche, PHP 5.3.6 mit Apache 2.0.55 unter Verwendung des GCC-Compilers in Solaris 10 SPARC zu kompilieren. Meine Anforderung ist es, das statische portable Binär von PHP zu erstellen.
Hier ist die Konfigurationsanweisung, die ich verwendet habe.
./configure \
--enable-static=yes \
--prefix=/opt/genesys/gvp/php \
--with-apxs2=/opt/genesys/gvp/apache/bin/apxs \
--with-config-file-path=/opt/genesys/gvp/apache/conf \
--disable-cli \
--disable-cgi \
--with-zlib-dir=/usr/local \
--enable-bcmath \
--with-curl=/usr/local \
--with-gdbm=/usr/local \
--with-gd \
--with-png-dir=/usr/local \
--with-libxml-dir=/usr/local \
--with-xsl=/usr/local \
--with-gettext \
--with-iconv=/usr/local \
--without-mysql \
--enable-shmop \
--enable-sockets \
--enable-xml \
--with-libexpat-dir=/usr/local \
--with-iconv-dir=/usr/local \
--with-mcrypt=/usr/local \
--without-pear \
--with-openssl=/usr/local/ssl \
--enable-maintainer-zts \
--without-sqlite \
--without-sqlite3 \
--without-pdo-sqlite \
--with-oci8=instantclient,/tmp/instantclient_10_2
Ich habe die Option --enable-static=yes aktiviert, um mit statischen Bibliotheken zu kompilieren, aber der Ausgabe des configure-Befehls ist immer noch negativ.
Prüfen, ob das Entfernen von Bibliotheken möglich ist... nein
Prüfen, ob libtool gemeinsame Bibliotheken unterstützt... ja
Prüfen, ob gemeinsame Bibliotheken erstellt werden sollen... ja
Prüfen, ob statische Bibliotheken erstellt werden sollen... nein
Auch wenn ich nach dem Ausführen von ldd auf libphp5 nach make und make install immer noch sehe, dass es extern auf Bibliotheken verweist.
Können Sie mir bitte helfen, wie ich die statische Kompilierung durchführen kann? Vielen Dank.