From:
Operating system: linux x86_64
PHP version: 5.4SVN-2012-03-18 (SVN)
Package: *Compile Issues
Bug Type: Bug
Bug description:php54-svn build ignores '--enable-static=no
--enable-<ext>=shared' flags
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 bug report at https://bugs.php.net/bug.php?id=61429&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=61429&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=61429&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=61429&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=61429&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=61429&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=61429&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=61429&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=61429&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=61429&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=61429&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=61429&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=61429&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=61429&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=61429&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=61429&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61429&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=61429&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=61429&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=61429&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=61429&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=61429&r=mysqlcfg