Bug #78664 [Opn->Nab]: --enable-shared=no not work

From: Date: Sun, 13 Oct 2019 18:36:07 +0000
Subject: Bug #78664 [Opn->Nab]: --enable-shared=no not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223195@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78664&edit=1 ID: 78664 Updated by: cmb@php.net Reported by: yejk2k at gmail dot com Summary: --enable-shared=no not work -Status: Open +Status: Not a bug Type: Bug Package: *Compile Issues Operating System: CentOS 7 docker latest PHP Version: 7.3.10 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. > I want to statically build php binary, embeded libpng、libjpeg、 > libwebp、libfreetype,this makes it easy to run directly on > another server But has known disadvantages. Anyhow, the PHP build system does not build these libs, but merely links them. If it finds dynamic libs it links dynamically, if it finds static libs it links statically. Previous Comments: ------------------------------------------------------------------------ [2019-10-12 11:43:17] yejk2k at gmail dot com Description: ------------ I want to statically build php binary, embeded libpng、libjpeg、libwebp、libfreetype,this makes it easy to run directly on another server I have used --enable-shared=no,but libtool checking whether to build shared libraries is still yes, shouldn't it be no ? I have see http://www.phpinternalsbook.com/php7/build_system/building_php.html#the-configure-script and http://www.phpinternalsbook.com/php7/build_system/building_extensions.html#loading-shared-extensions, but nothing to gain related question: https://stackoverflow.com/questions/58344185/what-does-enable-shared-pkgs-in-the-php-configure-param-mean Test script: --------------- ./configure --prefix=/usr/local/php-7.3 \ --enable-shared=no \ --enable-static=yes \ --with-fpm-user=admin \ --with-fpm-group=admin \ --enable-fpm \ --with-curl \ --with-gd \ --with-zlib \ --with-pdo-mysql \ --with-openssl \ --with-libdir=lib64 \ --enable-mbstring \ --enable-simplexml Expected result: ---------------- checking whether to build shared libraries no Actual result: -------------- checking whether to build shared libraries yes ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78664&edit=1

« previous php.bugs (#223195) next »