Edit report at https://bugs.php.net/bug.php?id=61429&edit=1

 ID:                 61429
 Updated by:         yohg...@php.net
 Reported by:        locuse at mm dot st
 Summary:            php54-svn build ignores '--enable-static=no
                     --enable-<ext>=shared' flags
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            *Compile Issues
 Operating System:   linux x86_64
 PHP Version:        5.4SVN-2012-03-18 (SVN)
 Block user comment: N
 Private report:     N

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------
[2012-03-18 16:26:34] locuse at mm dot st

Description:
------------
i'm building php5.4 from source,

        cd PHP_5_4
        svn info
                URL: https://svn.php.net/repository/php/php-src/branches/PHP_5_4
                Repository Root: https://svn.php.net/repository
                Repository UUID: c90b9560-bf6c-de11-be94-00142212c4b1
                Revision: 324330
                Node Kind: directory
                Schedule: normal
                Last Changed Author: cataphract
                Last Changed Rev: 324327
                Last Changed Date: 2012-03-18 08:07:20 -0700 (Sun, 18 Mar 2012)

i've configure to disable static build

        echo $CFLAGS
                -O2 -march=amdfam10 -mtune=amdfam10
        rm -rf /usr/local/extTEST
        mkdir -p /usr/local/extTEST
        export EXTENSION_DIR='/usr/local/extTEST'
        ./configure --prefix=/usr/local/php5 \
        --enable-shared=yes --enable-static=no --enable-session=shared

but after,

        make -j20
        make install
                Installing shared extensions:     /usr/local/extTEST/
                ...

BOTH the *.so & *.a ext's are _deployed_ to the extenstion-dir install target.

        ls -al /usr/local/extTEST
                total 124K
                drwxr-xr-x+  2 root root 4.0K Mar 18 09:20 ./
                drwxrwxr-x+ 36 root root 4.0K Mar 18 09:19 ../
                -rwxr-xr-x+  1 root root 105K Mar 18 09:20 session.a*
                -rwxr-xr-x+  1 root root 7.7K Mar 18 09:20 session.so*

this holds true for any individual, or set of, extension(s) specified.

iiuc from chat in ##php, the *.a's _are_ built, and the target *.so's are 
derived from them, but the deployment should only be of the *.so's, in this 
case.

checking the Makefile,

        grep ^"CFLAGS =" Makefile
                CFLAGS = $(CFLAGS_CLEAN) -prefer-non-pic -static

that "-static" flag, apparently installed by libtool (?), is unexpected.

is this a bug, or is there an additional config flag/setting needed to end-up 
with just the *.so's deployed?



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61429&edit=1

Reply via email to