Pra*_*een 5 php apache static build
I am trying to build PHP 5.3.6 with Apache 2.0.55 using gcc compiler in Solaris 10 SPARC. My requirement is to build the Static portable binary of php.
Following is the configure statement I used.
./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
I enabled to build with static libraries using --enable-static=yes but still the output of configure shows negative
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
即使我在make和make install之后在libphp5上执行了ldd,它仍然显示它在外部引用库。
您能帮我做静态构建吗?谢谢。
刚刚尝试过
./configure --enable-static
输出是
检查是否可以剥离库...是
检查 libtool 是否支持共享库...是
检查是否构建共享库...否
检查是否构建静态库...是`
不能说我理解为什么你有不同的结果
您能否验证一下,当您像我一样只使用简单的命令时,它不会启用静态构建?
归档时间: |
|
查看次数: |
3585 次 |
最近记录: |