Bug #78664 [NEW]: --enable-shared=no not work

From: Date: Sat, 12 Oct 2019 11:43:17 +0000
Subject: Bug #78664 [NEW]: --enable-shared=no not work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223184@lists.php.net to get a copy of this message
From:             yejk2k at gmail dot com
Operating system: CentOS 7 docker latest
PHP version:      7.3.10
Package:          *Compile Issues
Bug Type:         Bug
Bug description:--enable-shared=no not work

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 bug report at https://bugs.php.net/bug.php?id=78664&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=78664&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=78664&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=78664&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=78664&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=78664&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=78664&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=78664&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=78664&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=78664&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=78664&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78664&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=78664&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=78664&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=78664&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=78664&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=78664&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=78664&r=mysqlcfg


Thread (2 messages)

« previous php.bugs (#223184) next »